Skip to content

Commit 0c86f8a

Browse files
committed
strip whitespace when trying to find last event date/time
1 parent 49e91a0 commit 0c86f8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyadtpulse/site.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ def _update_zone_from_soup(self, soup: BeautifulSoup) -> Optional[ADTPulseZones]
385385
try:
386386
last_update = parse_pulse_datetime(
387387
remove_prefix(temp.get("title"), "Last Event:")
388+
.lstrip()
389+
.rstrip()
388390
)
389391
except ValueError:
390392
last_update = datetime(1970, 1, 1)

0 commit comments

Comments
 (0)