Upgrade astral (#1754)

* Upgrade astral to 1.0

* Pass timezone as string, not object, to astral.Location.
This commit is contained in:
Jan Harkes 2016-04-08 23:51:48 -04:00 committed by Paulus Schoutsen
parent c481cbce7e
commit db2783c2d1
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ from homeassistant.helpers.event import (
from homeassistant.util import dt as dt_util
from homeassistant.util import location as location_util
REQUIREMENTS = ['astral==0.9']
REQUIREMENTS = ['astral==1.0']
DOMAIN = "sun"
ENTITY_ID = "sun.sun"
@ -113,8 +113,8 @@ def setup(hass, config):
from astral import Location
location = Location(('', '', latitude, longitude, hass.config.time_zone,
elevation))
location = Location(('', '', latitude, longitude,
hass.config.time_zone.zone, elevation))
sun = Sun(hass, location)
sun.point_in_time_listener(dt_util.utcnow())

View File

@ -26,7 +26,7 @@ TwitterAPI==2.3.6
apcaccess==0.0.4
# homeassistant.components.sun
astral==0.9
astral==1.0
# homeassistant.components.light.blinksticklight
blinkstick==1.1.7