Import util.dt as dt_util in components/[g-i]* (#93759)

This commit is contained in:
Ville Skyttä 2023-05-30 00:01:00 +03:00 committed by GitHub
parent 1ce74ba25c
commit 5aadd7ffc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 49 additions and 41 deletions

View file

@ -5,7 +5,7 @@ import pytest
from homeassistant.components.github.const import DOMAIN, FALLBACK_UPDATE_INTERVAL
from homeassistant.core import HomeAssistant
from homeassistant.util import dt
from homeassistant.util import dt as dt_util
from .common import TEST_REPOSITORY
@ -42,7 +42,7 @@ async def test_sensor_updates_with_empty_release_array(
headers=headers,
)
async_fire_time_changed(hass, dt.utcnow() + FALLBACK_UPDATE_INTERVAL)
async_fire_time_changed(hass, dt_util.utcnow() + FALLBACK_UPDATE_INTERVAL)
await hass.async_block_till_done()
new_state = hass.states.get(TEST_SENSOR_ENTITY)