Skip to content

Commit e99725b

Browse files
committed
Remove unneeded list(dict()) constructs
1 parent 4a2f750 commit e99725b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugwise/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _detect_low_batteries(self) -> list[str]:
8686
mac_pattern = re.compile(r"(?:[0-9A-F]{2}){8}")
8787
matches = ["Battery", "below"]
8888
if self._notifications:
89-
for msg_id, notification in list(self._notifications.items()):
89+
for msg_id, notification in self._notifications.items():
9090
mac_address: str | None = None
9191
message: str | None = notification.get("message")
9292
warning: str | None = notification.get("warning")

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ def _scan_thermostats(self) -> None:
723723
for entity_id, entity in self.gw_entities.items():
724724
self._rank_thermostat(thermo_matching, loc_id, entity_id, entity)
725725

726-
for loc_id, loc_data in list(self._thermo_locs.items()):
726+
for loc_id, loc_data in self._thermo_locs.items():
727727
if loc_data["primary_prio"] != 0:
728728
self._zones[loc_id] = {
729729
"dev_class": "climate",

0 commit comments

Comments
 (0)