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:
Paulus Schoutsen authored and GitHub committed 2020-04-03 09:34:50 +02:00
1 parent 83cc871edf
commit aef06a3544
40 files changed
+127 -117

No files matched your search

+2 -2
View File
@@ -289,7 +289,7 @@ async def async_setup(hass, config):
need_update = True
if need_update:
await group.async_update_ha_state()
group.async_write_ha_state()
return
@@ -538,7 +538,7 @@ class Group(Entity):
return
self._async_update_group_state(new_state)
await self.async_update_ha_state()
self.async_write_ha_state()
@property
def _tracking_states(self):