Change async_write_ha_state to schedule_update_ha_state in entity.py

This commit is contained in:
Niek Schoemaker
2025-01-16 13:53:32 +01:00
parent 3325bb27b9
commit 8e8a7b12dc
+1 -1
View File
@@ -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()