mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Improve patching for nzbget sensor tests (#41032)
This commit is contained in:
parent
9d3ddb8981
commit
afc388c55a
@ -17,7 +17,7 @@ from tests.async_mock import patch
|
||||
async def test_sensors(hass, nzbget_api) -> None:
|
||||
"""Test the creation and values of the sensors."""
|
||||
now = dt_util.utcnow().replace(microsecond=0)
|
||||
with patch("homeassistant.util.dt.utcnow", return_value=now):
|
||||
with patch("homeassistant.components.nzbget.sensor.utcnow", return_value=now):
|
||||
entry = await init_integration(hass)
|
||||
|
||||
registry = await hass.helpers.entity_registry.async_get_registry()
|
||||
|
Loading…
x
Reference in New Issue
Block a user