Skip to content

Commit af46088

Browse files
committed
Use dict.copy() instead of list(dict)
1 parent e99725b commit af46088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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 self._notifications.items():
89+
for msg_id, notification in self._notifications.copy().items():
9090
mac_address: str | None = None
9191
message: str | None = notification.get("message")
9292
warning: str | None = notification.get("warning")

0 commit comments

Comments
 (0)