Cleanup and simplitfy the async state update (#9390)
* Cleanup and simplitfy the async state update * Update test_entity.py
This commit is contained in:
1 parent
c84a099b0f
commit
90f9a6bc0a
47 files changed
+128
-102
No files matched your search
@@ -129,6 +129,6 @@ class TimeDateSensor(Entity):
|
||||
def point_in_time_listener(self, time_date):
|
||||
"""Get the latest data and update state."""
|
||||
self._update_internal_state(time_date)
|
||||
self.hass.async_add_job(self.async_update_ha_state())
|
||||
self.async_schedule_update_ha_state()
|
||||
async_track_point_in_utc_time(
|
||||
self.hass, self.point_in_time_listener, self.get_next_interval())
|
||||
Reference in new issue
Block a user