Migrate from pytz to python-dateutil (#49643)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
13fe837fd2
commit
bf2d40adfe
37 changed files with 325 additions and 361 deletions
|
@ -27,7 +27,7 @@ def calls(hass):
|
|||
@pytest.fixture(autouse=True)
|
||||
def setup_comp(hass):
|
||||
"""Initialize components."""
|
||||
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}})
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue