We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c40d70 commit 00fecb7Copy full SHA for 00fecb7
plugwise/helper.py
@@ -194,8 +194,8 @@ def _add_p1_smartmeter_info(self) -> None:
194
195
module_id = module_data["module_id"]
196
if module_id in (
197
- self.gw_entities[self._home_loc_id]["module_id"],
198
- self.gw_entities[self._gateway_id]["module_id"],
+ self.gw_entities[self._gateway_id].get("module_id"),
+ self.gw_entities.get(self._home_loc_id, {}).get("module_id"),
199
):
200
return
201
0 commit comments