mirror of
https://github.com/home-assistant/core.git
synced 2026-05-04 20:04:35 +02:00
Import util.dt as dt_util in components/[p-s]* (#93761)
This commit is contained in:
@@ -6,7 +6,7 @@ from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRE
|
||||
from homeassistant.components.plex.const import DEBOUNCE_TIMEOUT
|
||||
from homeassistant.const import ATTR_ENTITY_ID
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.util import dt
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
from tests.common import async_fire_time_changed
|
||||
|
||||
@@ -23,7 +23,7 @@ async def test_scan_clients_button_schedule(
|
||||
|
||||
async_fire_time_changed(
|
||||
hass,
|
||||
dt.utcnow() + timedelta(seconds=DEBOUNCE_TIMEOUT),
|
||||
dt_util.utcnow() + timedelta(seconds=DEBOUNCE_TIMEOUT),
|
||||
)
|
||||
|
||||
assert await hass.services.async_call(
|
||||
|
||||
Reference in New Issue
Block a user