1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Migrate from pytz to python-dateutil (#49643)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
J. Nick Koston
2021-05-08 00:46:26 -05:00
committed by GitHub
parent 13fe837fd2
commit bf2d40adfe
37 changed files with 325 additions and 361 deletions

View File

@@ -33,7 +33,7 @@ def calls(hass):
def setup_comp(hass):
"""Initialize components."""
mock_component(hass, "group")
dt_util.set_default_time_zone(hass.config.time_zone)
hass.config.set_time_zone(hass.config.time_zone)
hass.loop.run_until_complete(
async_setup_component(hass, sun.DOMAIN, {sun.DOMAIN: {sun.CONF_ELEVATION: 0}})
)