mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Fix update of Xiaomi Miio vacuum taking too long (#52539)
Home assistant log would get spammed with messages like Update of vacuum.vacuum_name is taking over 10 seconds every 20 seconds if the vacuum was not reachable through the network. See #52353
This commit is contained in:
parent
046eb1690a
commit
07bda0973e
@ -507,7 +507,11 @@ class MiroboVacuum(XiaomiMiioEntity, StateVacuumEntity):
|
||||
|
||||
# Fetch timers separately, see #38285
|
||||
try:
|
||||
self._timers = self._device.timer()
|
||||
# Do not try this if the first fetch timed out.
|
||||
# Two timeouts take longer than 10 seconds and trigger a warning.
|
||||
# See #52353
|
||||
if self._available:
|
||||
self._timers = self._device.timer()
|
||||
except DeviceException as exc:
|
||||
_LOGGER.debug(
|
||||
"Unable to fetch timers, this may happen on some devices: %s", exc
|
||||
|
Loading…
x
Reference in New Issue
Block a user