From 7b708f4b35d964181386fddf7718858899033062 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 27 Sep 2022 16:51:46 -1000 Subject: [PATCH] Fix bluetooth active update coordinator not returning on failure (#79167) We also need to return on polling exception so we do not try to update. Fixes #79166 --- .../components/bluetooth/active_update_coordinator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/bluetooth/active_update_coordinator.py b/homeassistant/components/bluetooth/active_update_coordinator.py index b207f6fa2e1..37f049d3e07 100644 --- a/homeassistant/components/bluetooth/active_update_coordinator.py +++ b/homeassistant/components/bluetooth/active_update_coordinator.py @@ -117,12 +117,12 @@ class ActiveBluetoothProcessorCoordinator( "%s: Bluetooth error whilst polling: %s", self.address, str(exc) ) self.last_poll_successful = False - return + return except Exception: # pylint: disable=broad-except if self.last_poll_successful: self.logger.exception("%s: Failure while polling", self.address) self.last_poll_successful = False - return + return finally: self._last_poll = time.monotonic()