We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 306bfd0 commit fd94f75Copy full SHA for fd94f75
1 file changed
plugwise/helper.py
@@ -201,9 +201,11 @@ def _add_p1_smartmeter_info(self) -> None:
201
if not module_data["contents"]: # pragma: no cover
202
return
203
204
+ # Detect a smartmeter change
205
module_id = module_data["module_id"]
206
if module_id in (
207
self.gw_entities[self._gateway_id].get("module_id"),
208
+ # legacy
209
self.gw_entities.get(self._home_loc_id, {}).get("module_id"),
210
):
211
0 commit comments