@@ -972,22 +972,19 @@ def _process_c_heating_state(self, data: dict[str, Any]) -> None:
972972 Process the central_heating_state value.
973973 """
974974 if self ._on_off_device :
975- # Anna + OnOff heater: use central_heating_state to show heating-state
975+ # Anna + OnOff heater: use central_heating_state to show heating_state
976976 # Solution for Core issue #81839
977977 if self .smile_name == "Smile Anna" :
978978 data ["heating_state" ] = data ["c_heating_state" ]
979979
980980 if self .smile_name == "Adam" :
981981 data ["heating_state" ] = False
982- # Adam + OnOff cooling: use central_heating_state to show heating/cooling-state
982+ # Adam + OnOff cooling: use central_heating_state to show heating/cooling_state
983983 if self ._cooling_enabled :
984984 data ["cooling_state" ] = data ["c_heating_state" ]
985985 else :
986986 data ["heating_state" ] = data ["c_heating_state" ]
987987
988- # Remove c_heating_state after processing
989- data .pop ("c_heating_state" )
990-
991988 def _get_appliance_data (self , d_id : str ) -> DeviceData :
992989 """
993990 Helper-function for smile.py: _get_device_data().
@@ -1025,6 +1022,8 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
10251022
10261023 if "c_heating_state" in data :
10271024 self ._process_c_heating_state (data )
1025+ # Remove c_heating_state after processing
1026+ data .pop ("c_heating_state" )
10281027
10291028 if d_id == self ._heater_id and self .smile_name == "Smile Anna" :
10301029 if "elga_status_code" in data :
0 commit comments