mirror of
https://github.com/Andre0512/hon.git
synced 2025-01-21 23:10:58 +00:00
Change async_write_ha_state to schedule_update_ha_state in entity.py
This commit is contained in:
parent
3325bb27b9
commit
8e8a7b12dc
|
@ -52,4 +52,4 @@ class HonEntity(CoordinatorEntity[DataUpdateCoordinator[dict[str, Any]]]):
|
|||
@callback
|
||||
def _handle_coordinator_update(self, update: bool = True) -> None:
|
||||
if update:
|
||||
self.async_write_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
|
|
Loading…
Reference in a new issue