mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix test to test Norway fix (#2626)
This commit is contained in:
parent
14707630ae
commit
78c298e563
@ -96,7 +96,7 @@ class TestSun(unittest.TestCase):
|
|||||||
|
|
||||||
june = datetime(2016, 6, 1, tzinfo=dt_util.UTC)
|
june = datetime(2016, 6, 1, tzinfo=dt_util.UTC)
|
||||||
|
|
||||||
with patch('homeassistant.helpers.condition.dt_util.now',
|
with patch('homeassistant.helpers.condition.dt_util.utcnow',
|
||||||
return_value=june):
|
return_value=june):
|
||||||
assert sun.setup(self.hass, {sun.DOMAIN: {sun.CONF_ELEVATION: 0}})
|
assert sun.setup(self.hass, {sun.DOMAIN: {sun.CONF_ELEVATION: 0}})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user