Skip to content

Commit 6c40d70

Browse files
committed
Use in-construct as suggested
1 parent eee7bad commit 6c40d70

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
@@ -193,9 +193,9 @@ def _add_p1_smartmeter_info(self) -> None:
193193
return
194194

195195
module_id = module_data["module_id"]
196-
if (
197-
self.gw_entities[self._home_loc_id]["module_id"] == module_id
198-
or self.gw_entities[self._gateway_id]["module_id"] == 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"],
199199
):
200200
return
201201

0 commit comments

Comments
 (0)