Write state when async_update is called
This commit is contained in:
parent
216daccd8d
commit
29a69215ca
|
|
@ -346,6 +346,8 @@ class RoboVacEntity(StateVacuumEntity):
|
||||||
self.tuyastatus.get(CONSUMABLE_CODE)
|
self.tuyastatus.get(CONSUMABLE_CODE)
|
||||||
).decode("ascii")
|
).decode("ascii")
|
||||||
)["consumable"]["duration"]
|
)["consumable"]["duration"]
|
||||||
|
|
||||||
|
self.async_write_ha_state()
|
||||||
except TuyaException as e:
|
except TuyaException as e:
|
||||||
self.update_failures += 1
|
self.update_failures += 1
|
||||||
_LOGGER.debug("Update errored. Current failure count: {}. Reason: {}".format(self.update_failures, e))
|
_LOGGER.debug("Update errored. Current failure count: {}. Reason: {}".format(self.update_failures, e))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue