mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Make event.time_tracker_utcnow patchable with freezegun (#86051)
This commit is contained in:
parent
14a32cd63b
commit
551e098177
@ -44,7 +44,11 @@ from homeassistant.components.websocket_api.auth import (
|
||||
from homeassistant.components.websocket_api.http import URL
|
||||
from homeassistant.const import HASSIO_USER_NAME
|
||||
from homeassistant.core import CoreState, HomeAssistant
|
||||
from homeassistant.helpers import config_entry_oauth2_flow, recorder as recorder_helper
|
||||
from homeassistant.helpers import (
|
||||
config_entry_oauth2_flow,
|
||||
event,
|
||||
recorder as recorder_helper,
|
||||
)
|
||||
from homeassistant.helpers.json import json_loads
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
from homeassistant.setup import async_setup_component
|
||||
@ -85,6 +89,7 @@ def _utcnow():
|
||||
|
||||
|
||||
dt_util.utcnow = _utcnow
|
||||
event.time_tracker_utcnow = _utcnow
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
|
Loading…
x
Reference in New Issue
Block a user