Skip to content

Commit

Permalink
Merge pull request #24 from agittins/dev
Browse files Browse the repository at this point in the history
(fix): Fix timestamps not being updated
  • Loading branch information
agittins authored Aug 25, 2023
2 parents 648d0dd + 1ed9199 commit 2c33ea5
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 2c33ea5

Please sign in to comment.