Skip to content

Commit 700b76d

Browse files
committed
Fix missed
1 parent ffe6a92 commit 700b76d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _power_data_energy_diff(
188188

189189
def _create_gw_entities(self, appl: Munch) -> None:
190190
"""Helper-function for creating/updating gw_entities."""
191-
self.gw_entities[appl.dev_id] = {"dev_class": appl.pwclass}
191+
self.gw_entities[appl.entity_id] = {"dev_class": appl.pwclass}
192192
self._count += 1
193193
for key, value in {
194194
"available": appl.available,
@@ -204,7 +204,7 @@ def _create_gw_entities(self, appl: Munch) -> None:
204204
}.items():
205205
if value is not None or key == "location":
206206
appl_key = cast(ApplianceType, key)
207-
self.gw_entities[appl.dev_id][appl_key] = value
207+
self.gw_entities[appl.entity_id][appl_key] = value
208208
self._count += 1
209209

210210
def _entity_switching_group(

0 commit comments

Comments
 (0)