Skip to content

Commit

Permalink
(fix): Fix timestamps not being updated
Browse files Browse the repository at this point in the history
  • Loading branch information
agittins committed Aug 25, 2023
1 parent f3fe815 commit 1ed9199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/bermuda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ def __init__(
self.stamp: float = None
# Only remote scanners log timestamps here (local usb adaptors do not),
# so check if the dict is there at all first...
if "_discovered_device_timestamps" in vars(scandata.scanner):
if hasattr(scandata.scanner, "_discovered_device_timestamps"):
# Found a remote scanner which has timestamp history...

# FIXME:
# FIXME: Doesn't appear to be any API to get this otherwise...
# pylint: disable-next=protected-access
stamps = scandata.scanner._discovered_device_timestamps

Expand Down

0 comments on commit 1ed9199

Please sign in to comment.