mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Directly call async_write_ha_state (#33508)
* Directly call async_write_ha_state * Address comments * Fix tests
This commit is contained in:
@@ -54,4 +54,4 @@ class APICount(Entity):
|
||||
@callback
|
||||
def _update_count(self):
|
||||
self.count = self.hass.data.get(DATA_CONNECTIONS, 0)
|
||||
self.async_schedule_update_ha_state()
|
||||
self.async_write_ha_state()
|
||||
|
||||
Reference in New Issue
Block a user