Directly call write state 2 (#33513)
* Directly call async_write_ha_state pt2 * Directly call async_write_ha_state pt2 * Fix mock * Address comments
This commit is contained in:
1 parent
83cc871edf
commit
aef06a3544
40 files changed
+127
-117
No files matched your search
@@ -87,7 +87,7 @@ class ZWaveBaseEntity(Entity):
|
||||
@callback
|
||||
def do_update():
|
||||
"""Really update."""
|
||||
self.hass.async_add_job(self.async_update_ha_state)
|
||||
self.async_write_ha_state()
|
||||
self._update_scheduled = False
|
||||
|
||||
self._update_scheduled = True
|
||||
|
||||
Reference in new issue
Block a user