Skip to content

Commit 86a9485

Browse files
committed
Keep reworking
1 parent 51d565b commit 86a9485

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

plugwise/data.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,26 +154,13 @@ def _update_for_cooling(self, device: DeviceData) -> None:
154154
sensors["setpoint_high"] = temp_dict["setpoint_high"]
155155
self._count += 2
156156

157+
157158
def _get_location_data(self, loc_id: str) -> DeviceData:
158159
"""Helper-function for _all_device_data() and async_update().
159160
160161
Provide device-data, based on Location ID (= loc_id).
161162
"""
162163
climate = self.climate_data[loc_id]
163-
# data = self._get_climate_data(loc_id)
164-
if ctrl_state := self._control_state(loc_id):
165-
data["control_state"] = ctrl_state
166-
self._count += 1
167-
168-
# Thermostat data (presets, temperatures etc)
169-
self._device_data_climate(loc_id, climate, data)
170-
171-
def _get_device_data(self, dev_id: str) -> DeviceData:
172-
"""Helper-function for _all_device_data() and async_update().
173-
174-
Provide device-data, based on appliance_id ()= dev_id).
175-
"""
176-
climate = self.climate_data[loc_id]
177164
data = self._get_climate_data(loc_id)
178165
LOGGER.debug("HOI 2 climate: %s", data)
179166
if ctrl_state := self._control_state(loc_id):

0 commit comments

Comments
 (0)