Skip to content

Commit

Permalink
Fix comparison error found in issue #167
Browse files Browse the repository at this point in the history
  • Loading branch information
agittins committed Apr 20, 2024
1 parent 93a7229 commit ea7c382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/bermuda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def update_advertisement(
# In this dict all MAC address keys are upper-cased
uppermac = device_address.upper()
if uppermac in stamps:
if stamps[uppermac] > self.stamp:
if self.stamp is None or stamps[uppermac] > self.stamp:
new_stamp = stamps[uppermac]
else:
# We have no updated advert in this run.
Expand Down

0 comments on commit ea7c382

Please sign in to comment.