mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Fix longitude (#6697)
This commit is contained in:
committed by
Paulus Schoutsen
parent
35c679a956
commit
7eaad4fb3a
@@ -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]
|
||||
|
Reference in New Issue
Block a user