Skip to content

Commit ecc68ea

Browse files
committed
Use in-construct as suggested
1 parent 2bc1551 commit ecc68ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise/helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ def _add_p1_smartmeter_info(self) -> None:
206206
return
207207

208208
module_id = module_data["module_id"]
209-
if (
210-
self.gw_entities[self._home_loc_id]["module_id"] == module_id
211-
or self.gw_entities[self._gateway_id]["module_id"] == 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"],
212212
):
213213
return
214214

0 commit comments

Comments
 (0)