Los Angeles has a great climate year round, although the hottest months are August and September, when the temperature can exceed 30C and the humidity is also pretty high.
The city does suffer from smog during the summer, so if you have asthma, it might be an idea to visit in the spring when the air is a bit clearer.