Skip to content

Commit d78a92b

Browse files
committed
Fixes
1 parent 9116bc5 commit d78a92b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugwise/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ def _count_data_items(self, data: GwEntityData) -> None:
137137
Also, count the remaining single data items, the amount of dicts present have already been pre-subtracted in the previous step.
138138
"""
139139
if "binary_sensors" in data:
140-
self._count += len(data["binary_sensors"]) -1
140+
self._count += len(data["binary_sensors"]) - 1
141141
if "sensors" in data:
142142
self._count += len(data["sensors"]) - 1
143143
if "switches" in data:
144-
self._count += len(data["switches"]) -1
144+
self._count += len(data["switches"]) - 1
145145
self._count += len(data)
146146

147147
def _power_data_peak_value(self, loc: Munch, legacy: bool) -> Munch:

plugwise/legacy/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(self) -> None:
8989
self.smile_name: str
9090
self.smile_type: str
9191
self.smile_zigbee_mac_address: str | None
92-
self.zone_data: dict[str, GwEntityData] = {}
92+
self.zones: dict[str, GwEntityData] = {}
9393
SmileCommon.__init__(self)
9494

9595
def _all_appliances(self) -> None:

0 commit comments

Comments
 (0)