mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Fix longitude (#6697)
This commit is contained in:
parent
35c679a956
commit
7eaad4fb3a
@ -133,7 +133,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
"""Setup the Dark Sky sensor."""
|
"""Setup the Dark Sky sensor."""
|
||||||
# latitude and longitude are inclusive on config
|
# latitude and longitude are inclusive on config
|
||||||
latitude = config.get(CONF_LATITUDE, hass.config.latitude)
|
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:
|
if CONF_UNITS in config:
|
||||||
units = config[CONF_UNITS]
|
units = config[CONF_UNITS]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user