@@ -122,6 +122,28 @@ def _update_for_cooling(self, device: DeviceData) -> None:
122122 sensors ["setpoint_high" ] = temp_dict ["setpoint_high" ]
123123 self ._count += 2
124124
125+ def get_all_devices (self ) -> None :
126+ """Determine the evices present from the obtained XML-data.
127+
128+ Run this functions once to gather the initial device configuration,
129+ then regularly run async_update() to refresh the device data.
130+ """
131+ # Gather all the devices and their initial data
132+ self ._all_appliances ()
133+ if self ._is_thermostat :
134+ self ._scan_thermostats ()
135+ # Collect a list of thermostats with offset-capability
136+ self .therms_with_offset_func = (
137+ self ._get_appliances_with_offset_functionality ()
138+ )
139+
140+ # Collect and add switching- and/or pump-group devices
141+ if group_data := self ._get_group_switches ():
142+ self .gw_devices .update (group_data )
143+
144+ # Collect the remaining data for all devices
145+ self ._all_device_data ()
146+
125147 def _all_device_data (self ) -> None :
126148 """Helper-function for get_all_devices().
127149
@@ -146,28 +168,6 @@ def _all_device_data(self) -> None:
146168 {"heater_id" : self ._heater_id , "cooling_present" : self ._cooling_present }
147169 )
148170
149- def get_all_devices (self ) -> None :
150- """Determine the evices present from the obtained XML-data.
151-
152- Run this functions once to gather the initial device configuration,
153- then regularly run async_update() to refresh the device data.
154- """
155- # Gather all the devices and their initial data
156- self ._all_appliances ()
157- if self ._is_thermostat :
158- self ._scan_thermostats ()
159- # Collect a list of thermostats with offset-capability
160- self .therms_with_offset_func = (
161- self ._get_appliances_with_offset_functionality ()
162- )
163-
164- # Collect and add switching- and/or pump-group devices
165- if group_data := self ._get_group_switches ():
166- self .gw_devices .update (group_data )
167-
168- # Collect the remaining data for all devices
169- self ._all_device_data ()
170-
171171 def _device_data_switching_group (
172172 self , device : DeviceData , device_data : DeviceData
173173 ) -> DeviceData :
0 commit comments