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 ecc68ea commit 68d5176Copy full SHA for 68d5176
plugwise/helper.py
@@ -207,8 +207,8 @@ def _add_p1_smartmeter_info(self) -> None:
207
208
module_id = module_data["module_id"]
209
if module_id in (
210
- self.gw_entities[self._home_loc_id]["module_id"],
211
- 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"),
212
):
213
return
214
0 commit comments