Skip to content

Commit e89b103

Browse files
committed
Simplify
1 parent 56d7433 commit e89b103

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

plugwise/helper.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -844,15 +844,9 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
844844
if self._smile_legacy and self.smile_type == "power":
845845
return data
846846

847+
measurements = DEVICE_MEASUREMENTS
847848
if d_id == self._heater_id:
848849
measurements = HEATER_CENTRAL_MEASUREMENTS
849-
else:
850-
measurements = DEVICE_MEASUREMENTS
851-
# if self._opentherm_device or self._on_off_device:
852-
# measurements = {
853-
# **DEVICE_MEASUREMENTS,
854-
# **HEATER_CENTRAL_MEASUREMENTS,
855-
# }
856850

857851
if (
858852
appliance := self._appliances.find(f'./appliance[@id="{d_id}"]')

0 commit comments

Comments
 (0)