diff --git a/pyplumio/structures/thermostat_parameters.py b/pyplumio/structures/thermostat_parameters.py index 51332858..5952ae5f 100644 --- a/pyplumio/structures/thermostat_parameters.py +++ b/pyplumio/structures/thermostat_parameters.py @@ -206,10 +206,7 @@ def decode( and (thermostats := sender.get_nowait(ATTR_THERMOSTATS_CONNECTED, 0)) == 0 ): return ( - ensure_dict( - data, - {ATTR_THERMOSTAT_PARAMETERS: None, ATTR_THERMOSTAT_PROFILE: None}, - ), + ensure_dict(data, {ATTR_THERMOSTAT_PARAMETERS: None}), offset, ) diff --git a/tests/test_devices.py b/tests/test_devices.py index 6c97f615..83e2e19b 100644 --- a/tests/test_devices.py +++ b/tests/test_devices.py @@ -385,8 +385,6 @@ async def test_thermostat_parameters_callbacks_without_thermostats( ecomax.handle_frame(ThermostatParametersResponse(message=test_data["message"])) await ecomax.wait_until_done() assert not await ecomax.get(ATTR_THERMOSTAT_PARAMETERS) - thermostat_profile = await ecomax.get(ATTR_THERMOSTAT_PROFILE) - assert thermostat_profile is None async def test_thermostat_profile_callbacks(ecomax: EcoMAX) -> None: