mirror of
https://github.com/Andre0512/hon.git
synced 2026-07-04 12:22:45 +02:00
Change async_write_ha_state to schedule_update_ha_state in entity.py
This commit is contained in:
@@ -52,4 +52,4 @@ class HonEntity(CoordinatorEntity[DataUpdateCoordinator[dict[str, Any]]]):
|
|||||||
@callback
|
@callback
|
||||||
def _handle_coordinator_update(self, update: bool = True) -> None:
|
def _handle_coordinator_update(self, update: bool = True) -> None:
|
||||||
if update:
|
if update:
|
||||||
self.async_write_ha_state()
|
self.schedule_update_ha_state()
|
||||||
|
|||||||
Reference in New Issue
Block a user