mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Ensure the sun latitude and longitude are strings
This commit is contained in:
parent
28059bda7f
commit
004d4ed123
@ -96,8 +96,8 @@ def setup(hass, config):
|
||||
|
||||
sun = ephem.Sun() # pylint: disable=no-member
|
||||
|
||||
latitude = config[ha.DOMAIN][CONF_LATITUDE]
|
||||
longitude = config[ha.DOMAIN][CONF_LONGITUDE]
|
||||
latitude = str(config[ha.DOMAIN][CONF_LATITUDE])
|
||||
longitude = str(config[ha.DOMAIN][CONF_LONGITUDE])
|
||||
|
||||
# Validate latitude and longitude
|
||||
observer = ephem.Observer()
|
||||
|
Loading…
x
Reference in New Issue
Block a user