Fix longitude (#6697)

This commit is contained in:
John Mihalic 2017-03-19 14:00:13 -04:00 committed by Paulus Schoutsen
parent 35c679a956
commit 7eaad4fb3a

View File

@ -133,7 +133,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the Dark Sky sensor."""
# latitude and longitude are inclusive on config
latitude = config.get(CONF_LATITUDE, hass.config.latitude)
longitude = config.get(CONF_LONGITUDE, hass.config.latitude)
longitude = config.get(CONF_LONGITUDE, hass.config.longitude)
if CONF_UNITS in config:
units = config[CONF_UNITS]