core/homeassistant/components/weather
mvn23 6e0a3abf66 Fix TypeError on round(self.humidity) (fixes #13116) (#14174)
* Fix TypeError on round(self.humidity)

Some weather platforms postpone the first data fetch for a while on init. As a result round(self.humidity is called before it is assigned a value, producing an error. This is a fix for that.

* Rewrite to avoid false negative evaluation

As per the suggestion from @OttoWinter, rewrite to avoid matching e.g. 0.0 as false.
2018-04-30 13:27:45 -04:00
..
__init__.py Fix TypeError on round(self.humidity) (fixes #13116) (#14174) 2018-04-30 13:27:45 -04:00
bom.py Bom weather platform (#5153) 2017-01-15 12:12:50 +01:00
buienradar.py Add precipitation to OpenWeatherMap forecast (#13971) 2018-04-29 17:50:49 +02:00
darksky.py Modify weather components for "new" frontend card (#14076) 2018-04-25 12:37:57 +02:00
demo.py Add precipitation to OpenWeatherMap forecast (#13971) 2018-04-29 17:50:49 +02:00
ecobee.py Add precipitation to OpenWeatherMap forecast (#13971) 2018-04-29 17:50:49 +02:00
metoffice.py Add missing configuration variables (#11390) 2018-01-06 21:53:14 +01:00
openweathermap.py Add precipitation to OpenWeatherMap forecast (#13971) 2018-04-29 17:50:49 +02:00
yweather.py Add precipitation to OpenWeatherMap forecast (#13971) 2018-04-29 17:50:49 +02:00
zamg.py Allow to set coordinates (#8858) 2017-08-06 15:20:51 +02:00