mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Remove unneeded blocking sleep in srp_energy tests (#121141)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
"""Tests for the srp_energy sensor platform."""
|
||||
|
||||
import time
|
||||
from unittest.mock import patch
|
||||
|
||||
from requests.models import HTTPError
|
||||
@@ -80,7 +79,7 @@ async def test_srp_entity_timeout(
|
||||
):
|
||||
client = srp_energy_mock.return_value
|
||||
client.validate.return_value = True
|
||||
client.usage = lambda _, __, ___: time.sleep(1) # noqa: ASYNC251
|
||||
client.usage = lambda _, __, ___: None
|
||||
mock_config_entry.add_to_hass(hass)
|
||||
|
||||
await hass.config_entries.async_setup(mock_config_entry.entry_id)
|
||||
|
Reference in New Issue
Block a user