Skip to content

Commit f2a4756

Browse files
committed
Don't replace gateway entity id for anna_p1
1 parent a8b772d commit f2a4756

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugwise/helper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ def _get_p1_smartmeter_info(self) -> None:
183183
appl.zigbee_mac = None
184184

185185
# Replace the entity_id of the gateway by the smartmeter location_id
186-
self.gw_entities[self._home_loc_id] = self.gw_entities.pop(self._gateway_id)
187-
self._gateway_id = self._home_loc_id
186+
if not self.smile.anna_p1:
187+
self.gw_entities[self._home_loc_id] = self.gw_entities.pop(self._gateway_id)
188+
self._gateway_id = self._home_loc_id
188189

189190
self._create_gw_entities(appl)
190191

0 commit comments

Comments
 (0)