Skip to content

Commit

Permalink
(fix) crash when scanner object is not populated
Browse files Browse the repository at this point in the history
  • Loading branch information
agittins committed Nov 6, 2024
1 parent ae6f941 commit acf55e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/bermuda/bermuda_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ def calculate_data(self):
# just in case. Was not able to reproduce.
scanner.calculate_data()
else:
_LOGGER_SPAM_LESS.debug(
"scanner_not_instance", "Scanner device is not a BermudaDevice instance, skipping."
)
_LOGGER_SPAM_LESS.error("scanner_not_instance", "Scanner device is not a BermudaDevice instance, skipping.")

# Update whether the device has been seen recently, for device_tracker:
if (
Expand Down

0 comments on commit acf55e1

Please sign in to comment.