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 e99725b commit af46088Copy full SHA for af46088
plugwise/data.py
@@ -86,7 +86,7 @@ def _detect_low_batteries(self) -> list[str]:
86
mac_pattern = re.compile(r"(?:[0-9A-F]{2}){8}")
87
matches = ["Battery", "below"]
88
if self._notifications:
89
- for msg_id, notification in self._notifications.items():
+ for msg_id, notification in self._notifications.copy().items():
90
mac_address: str | None = None
91
message: str | None = notification.get("message")
92
warning: str | None = notification.get("warning")
0 commit comments