Skip to content

Commit fd94f75

Browse files
committed
Add comments
1 parent 306bfd0 commit fd94f75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugwise/helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,11 @@ def _add_p1_smartmeter_info(self) -> None:
201201
if not module_data["contents"]: # pragma: no cover
202202
return
203203

204+
# Detect a smartmeter change
204205
module_id = module_data["module_id"]
205206
if module_id in (
206207
self.gw_entities[self._gateway_id].get("module_id"),
208+
# legacy
207209
self.gw_entities.get(self._home_loc_id, {}).get("module_id"),
208210
):
209211
return

0 commit comments

Comments
 (0)