Fix return value

This commit is contained in:
Fabian Affolter 2015-09-14 14:21:55 +02:00
parent 3c3eadbef5
commit 8ec0c36457

View file

@ -91,7 +91,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
_LOGGER.error(
"Connection error "
"Please check your settings for OpenWeatherMap.")
return None
return False
data = WeatherData(owm, forecast, hass.config.latitude,
hass.config.longitude)