From c46ba3446da67d6b1abd3116beb7fc2c7258005d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 16 Mar 2017 17:38:46 +0100 Subject: [PATCH] Upgrade astral to 1.4 (#6332) * Upgrade astral to 1.4 * Update test for norway --- homeassistant/components/sensor/moon.py | 2 +- homeassistant/components/sun.py | 2 +- requirements_all.txt | 2 +- tests/components/test_sun.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/sensor/moon.py b/homeassistant/components/sensor/moon.py index 5248a9e5306..dc890c0f3cd 100644 --- a/homeassistant/components/sensor/moon.py +++ b/homeassistant/components/sensor/moon.py @@ -15,7 +15,7 @@ import homeassistant.util.dt as dt_util from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['astral==1.3.4'] +REQUIREMENTS = ['astral==1.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sun.py b/homeassistant/components/sun.py index 2d1ad579342..19f0b0fabba 100644 --- a/homeassistant/components/sun.py +++ b/homeassistant/components/sun.py @@ -17,7 +17,7 @@ from homeassistant.util import dt as dt_util import homeassistant.helpers.config_validation as cv import homeassistant.util as util -REQUIREMENTS = ['astral==1.3.4'] +REQUIREMENTS = ['astral==1.4'] _LOGGER = logging.getLogger(__name__) diff --git a/requirements_all.txt b/requirements_all.txt index 3e95c4a40c4..adbb1b70009 100755 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -58,7 +58,7 @@ apns2==0.1.1 # homeassistant.components.sun # homeassistant.components.sensor.moon -astral==1.3.4 +astral==1.4 # homeassistant.components.light.avion # avion==0.5 diff --git a/tests/components/test_sun.py b/tests/components/test_sun.py index 3d5a27294a9..33fc5ad40c5 100644 --- a/tests/components/test_sun.py +++ b/tests/components/test_sun.py @@ -109,6 +109,6 @@ class TestSun(unittest.TestCase): assert state is not None assert sun.next_rising_utc(self.hass) == \ - datetime(2016, 7, 25, 23, 38, 21, tzinfo=dt_util.UTC) + datetime(2016, 7, 25, 23, 23, 39, tzinfo=dt_util.UTC) assert sun.next_setting_utc(self.hass) == \ - datetime(2016, 7, 26, 22, 4, 18, tzinfo=dt_util.UTC) + datetime(2016, 7, 26, 22, 19, 1, tzinfo=dt_util.UTC)