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
|
@ -62,7 +62,7 @@ class MinutPointSensor(MinutPointEntity):
|
|||
self.device.sensor, self.device_class
|
||||
)
|
||||
self._updated = parse_datetime(self.device.last_update)
|
||||
self.async_schedule_update_ha_state()
|
||||
self.async_write_ha_state()
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue