Skip to content
Snippets Groups Projects
Unverified Commit afc388c5 authored by Chris Talkington's avatar Chris Talkington Committed by GitHub
Browse files

Improve patching for nzbget sensor tests (#41032)

parent 9d3ddb89
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment