Skip to content

Commit 4a86e11

Browse files
committed
Don't swap gateway and smartmeter entity id's for Anna P1
1 parent f2a4756 commit 4a86e11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugwise/helper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ def _get_p1_smartmeter_info(self) -> None:
170170
return
171171

172172
appl.available = None
173-
appl.entity_id = self._gateway_id
173+
appl.entity_id = self._home_loc_id
174+
if not self.smile.anna_p1:
175+
appl.entity_id = self._gateway_id
174176
appl.firmware = module_data["firmware_version"]
175177
appl.hardware = module_data["hardware_version"]
176178
appl.location = self._home_loc_id

0 commit comments

Comments
 (0)