mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-11 22:34:04 +02:00
conf.get seems to handle missing hass.config variables - remove or None
Should fix #8
This commit is contained in:
parent
d70e7d0c91
commit
6c37e03222
1 changed files with 3 additions and 3 deletions
|
|
@ -96,9 +96,9 @@ def setup(hass, config):
|
|||
sunrise_time = conf.get(CONF_SUNRISE_TIME)
|
||||
sunset_time = conf.get(CONF_SUNSET_TIME)
|
||||
|
||||
latitude = conf.get(CONF_LATITUDE, hass.config.latitude or None)
|
||||
longitude = conf.get(CONF_LONGITUDE, hass.config.longitude or None)
|
||||
elevation = conf.get(CONF_ELEVATION, hass.config.elevation or None)
|
||||
latitude = conf.get(CONF_LATITUDE, hass.config.latitude)
|
||||
longitude = conf.get(CONF_LONGITUDE, hass.config.longitude)
|
||||
elevation = conf.get(CONF_ELEVATION, hass.config.elevation)
|
||||
|
||||
load_platform(hass, 'sensor', DOMAIN, {}, config)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue