mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
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
This commit is contained in:
parent
40f5c317c7
commit
7b708f4b35
@ -117,12 +117,12 @@ class ActiveBluetoothProcessorCoordinator(
|
|||||||
"%s: Bluetooth error whilst polling: %s", self.address, str(exc)
|
"%s: Bluetooth error whilst polling: %s", self.address, str(exc)
|
||||||
)
|
)
|
||||||
self.last_poll_successful = False
|
self.last_poll_successful = False
|
||||||
return
|
return
|
||||||
except Exception: # pylint: disable=broad-except
|
except Exception: # pylint: disable=broad-except
|
||||||
if self.last_poll_successful:
|
if self.last_poll_successful:
|
||||||
self.logger.exception("%s: Failure while polling", self.address)
|
self.logger.exception("%s: Failure while polling", self.address)
|
||||||
self.last_poll_successful = False
|
self.last_poll_successful = False
|
||||||
return
|
return
|
||||||
finally:
|
finally:
|
||||||
self._last_poll = time.monotonic()
|
self._last_poll = time.monotonic()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user