Write state when async_update is called

This commit is contained in:
Luke Bonaccorsi 2023-09-11 17:25:23 +01:00
parent 216daccd8d
commit 29a69215ca
1 changed files with 2 additions and 0 deletions

View File

@ -346,6 +346,8 @@ class RoboVacEntity(StateVacuumEntity):
self.tuyastatus.get(CONSUMABLE_CODE)
).decode("ascii")
)["consumable"]["duration"]
self.async_write_ha_state()
except TuyaException as e:
self.update_failures += 1
_LOGGER.debug("Update errored. Current failure count: {}. Reason: {}".format(self.update_failures, e))