@@ -290,9 +290,9 @@ def __init__(self):
290290 """Set the constructor for this class."""
291291 self ._appl_data : dict [str , Any ] = {}
292292 self ._appliances : etree | None = None
293- self ._cao_present : bool = False
294- self ._cao_temp : float | None = None
295- self ._cdt_temp : float | None = None
293+ self ._anna_cooling_present : bool = False
294+ self ._cooling_activation_outdoor_temp : float | None = None
295+ self ._cooling_deactivation_threshold : float | None = None
296296 self ._cooling_present = False
297297 self ._devices : dict [str , str ] = {}
298298 self ._domain_objects : etree | None = None
@@ -626,11 +626,9 @@ def _all_appliances(self) -> None:
626626 ot_fault_code = self ._appliances .find (
627627 ".//logs/point_log[type='open_therm_oem_fault_code']"
628628 )
629- LOGGER .debug ("HOI1 %s, %s" , c_heating_state , ot_fault_code )
630629 if c_heating_state is not None :
631630 self ._opentherm_device = ot_fault_code is not None
632631 self ._on_off_device = ot_fault_code is None
633- LOGGER .debug ("HOI2 %s, %s" , self ._opentherm_device , self ._on_off_device )
634632
635633 for appliance in self ._appliances .findall ("./appliance" ):
636634 appl = Munch ()
@@ -689,8 +687,6 @@ def _all_appliances(self) -> None:
689687 ):
690688 self ._appl_data .pop (appl .dev_id )
691689
692- LOGGER .debug ("HOI3 %s" , self ._appl_data )
693-
694690 def _match_locations (self ) -> dict [str , Any ]:
695691 """Helper-function for _scan_thermostats().
696692 Update locations with present appliance-types.
@@ -826,10 +822,10 @@ def _appliance_measurements(
826822 # Anna: save cooling-related measurements for later use
827823 # Use the local outdoor temperature as reference for turning cooling on/off
828824 if measurement == "cooling_activation_outdoor_temperature" :
829- self ._cao_present = self ._cooling_present = True
830- self ._cao_temp = data .get (measurement )
825+ self ._anna_cooling_present = self ._cooling_present = True
826+ self ._cooling_activation_outdoor_temp = data .get (measurement )
831827 if measurement == "cooling_deactivation_threshold" :
832- self ._cdt_temp = data .get (measurement )
828+ self ._cooling_deactivation_threshold = data .get (measurement )
833829 if measurement == "outdoor_temperature" :
834830 self ._outdoor_temp = data .get (measurement )
835831
0 commit comments