diff --git a/tests/components/asuswrt/conftest.py b/tests/components/asuswrt/conftest.py index e6dd42a23fd..95c8f3dbf74 100644 --- a/tests/components/asuswrt/conftest.py +++ b/tests/components/asuswrt/conftest.py @@ -222,7 +222,7 @@ def mock_controller_connect_http_sens_fail(connect_http): def mock_controller_connect_http_sens_detect(): """Mock a successful sensor detection using http library.""" - def _get_sensors_side_effect(datatype): + async def _get_sensors_side_effect(datatype): if datatype == AsusData.TEMPERATURE: return list(MOCK_TEMPERATURES_HTTP) if datatype == AsusData.CPU: diff --git a/tests/components/asuswrt/test_sensor.py b/tests/components/asuswrt/test_sensor.py index 3ce3246c1d6..c782605aab3 100644 --- a/tests/components/asuswrt/test_sensor.py +++ b/tests/components/asuswrt/test_sensor.py @@ -377,7 +377,6 @@ async def test_cpu_sensors_http( connect_http_sens_detect, ) -> None: """Test creating AsusWRT cpu sensors.""" - connect_http_sens_detect(AsusData.CPU) config_entry, sensor_prefix = _setup_entry(hass, CONFIG_DATA_HTTP, SENSORS_CPU) config_entry.add_to_hass(hass)