Import util.dt as dt_util in components/[e-f]* (#93758)

This commit is contained in:
Ville Skyttä 2023-05-30 00:00:11 +03:00 committed by GitHub
parent 6aa01e1441
commit 70c49824d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 42 additions and 40 deletions

View file

@ -21,7 +21,7 @@ from homeassistant.components.websocket_api.const import TYPE_RESULT
from homeassistant.core import HomeAssistant
from homeassistant.loader import async_get_integration
from homeassistant.setup import async_setup_component
from homeassistant.util import dt
from homeassistant.util import dt as dt_util
from tests.common import MockUser, async_capture_events, async_fire_time_changed
from tests.typing import WebSocketGenerator
@ -228,7 +228,7 @@ async def test_themes_save_storage(
)
# To trigger the call_later
async_fire_time_changed(hass, dt.utcnow() + timedelta(seconds=60))
async_fire_time_changed(hass, dt_util.utcnow() + timedelta(seconds=60))
# To execute the save
await hass.async_block_till_done()