Directly call async_write_ha_state (#33508)
* Directly call async_write_ha_state * Address comments * Fix tests
This commit is contained in:
parent
4e043b3123
commit
aaa1d06809
129 changed files with 263 additions and 278 deletions
|
@ -1234,7 +1234,7 @@ class ZWaveDeviceEntity(ZWaveBaseEntity):
|
|||
ent_reg.async_update_entity(self.entity_id, new_entity_id=new_entity_id)
|
||||
return
|
||||
# else for the above two ifs, update if not using update_entity
|
||||
self.async_schedule_update_ha_state()
|
||||
self.async_write_ha_state()
|
||||
|
||||
async def async_added_to_hass(self):
|
||||
"""Add device to dict."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue