Skip to content

Commit da05526

Browse files
committed
Update regex pattern
1 parent 109af62 commit da05526

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
@@ -73,7 +73,7 @@ def _update_gw_devices(self) -> None:
7373
def _detect_low_batteries(self) -> list[str]:
7474
"""Helper-function updating the battery_state binary_sensor status from a Battery-is-low message."""
7575
mac_address_list: list[str] = []
76-
mac_pattern = "(?:[0-9A-F]{2}){7}(?:[0-9A-F]{2})"
76+
mac_pattern = "(?:[0-9A-F]{2}){8}"
7777
matches = ["Battery", "below"]
7878
if self._notifications:
7979
for msg_id, notification in list(self._notifications.items()):

0 commit comments

Comments
 (0)