mirror of
https://github.com/home-assistant/core.git
synced 2025-05-01 20:57:51 +00:00
Upgrade astral (#1754)
* Upgrade astral to 1.0 * Pass timezone as string, not object, to astral.Location.
This commit is contained in:
parent
c481cbce7e
commit
db2783c2d1
@ -14,7 +14,7 @@ from homeassistant.helpers.event import (
|
|||||||
from homeassistant.util import dt as dt_util
|
from homeassistant.util import dt as dt_util
|
||||||
from homeassistant.util import location as location_util
|
from homeassistant.util import location as location_util
|
||||||
|
|
||||||
REQUIREMENTS = ['astral==0.9']
|
REQUIREMENTS = ['astral==1.0']
|
||||||
DOMAIN = "sun"
|
DOMAIN = "sun"
|
||||||
ENTITY_ID = "sun.sun"
|
ENTITY_ID = "sun.sun"
|
||||||
|
|
||||||
@ -113,8 +113,8 @@ def setup(hass, config):
|
|||||||
|
|
||||||
from astral import Location
|
from astral import Location
|
||||||
|
|
||||||
location = Location(('', '', latitude, longitude, hass.config.time_zone,
|
location = Location(('', '', latitude, longitude,
|
||||||
elevation))
|
hass.config.time_zone.zone, elevation))
|
||||||
|
|
||||||
sun = Sun(hass, location)
|
sun = Sun(hass, location)
|
||||||
sun.point_in_time_listener(dt_util.utcnow())
|
sun.point_in_time_listener(dt_util.utcnow())
|
||||||
|
@ -26,7 +26,7 @@ TwitterAPI==2.3.6
|
|||||||
apcaccess==0.0.4
|
apcaccess==0.0.4
|
||||||
|
|
||||||
# homeassistant.components.sun
|
# homeassistant.components.sun
|
||||||
astral==0.9
|
astral==1.0
|
||||||
|
|
||||||
# homeassistant.components.light.blinksticklight
|
# homeassistant.components.light.blinksticklight
|
||||||
blinkstick==1.1.7
|
blinkstick==1.1.7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user