Skip to content

Commit 96f0684

Browse files
committed
Add comment, move one count to the proper position
1 parent 53a23f5 commit 96f0684

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugwise/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,7 @@ def _appliance_measurements(
881881
self._count += len(data["binary_sensors"])
882882
self._count += len(data["sensors"])
883883
self._count += len(data["switches"])
884+
# Don't count the above top-level dicts, only the remaining single items
884885
self._count += len(data) - 3
885886

886887
def _wireless_availablity(self, appliance: etree, data: DeviceData) -> None:
@@ -952,9 +953,9 @@ def _get_actuator_functionalities(
952953
temp_dict["lower_bound"] = -2.0
953954
temp_dict["resolution"] = 0.1
954955
temp_dict["upper_bound"] = 2.0
956+
self._count += 3
955957
# Rename offset to setpoint
956958
key = "setpoint"
957-
self._count += 3
958959

959960
act_key = cast(ActuatorDataType, key)
960961
temp_dict[act_key] = format_measure(function.text, TEMP_CELSIUS)

0 commit comments

Comments
 (0)