Fix RuntimeWarning in asuswrt tests (#150580)

This commit is contained in:
Marc Mueller
2025-08-13 18:33:02 +02:00
committed by GitHub
parent d18cc3d6c3
commit 13376ef896
2 changed files with 1 additions and 2 deletions

View File

@@ -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:

View File

@@ -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)