Spread async love (#3575)
* Convert Entity.update_ha_state to be async * Make Service.call async * Update entity.py * Add Entity.async_update * Make automation zone trigger async * Fix linting * Reduce flakiness in hass.block_till_done * Make automation.numeric_state async * Make mqtt.subscribe async * Make automation.mqtt async * Make automation.time async * Make automation.sun async * Add async_track_point_in_utc_time * Make helpers.track_sunrise/set async * Add async_track_state_change * Make automation.state async * Clean up helpers/entity.py tests * Lint * Lint * Core.is_state and Core.is_state_attr are async friendly * Lint * Lint
This commit is contained in:
1 parent
7e50ccd32a
commit
b650b2b0db
17 files changed
+323
-151
No files matched your search
@@ -149,8 +149,8 @@ class Template(object):
|
||||
global_vars = ENV.make_globals({
|
||||
'closest': location_methods.closest,
|
||||
'distance': location_methods.distance,
|
||||
'is_state': self.hass.states.async_is_state,
|
||||
'is_state_attr': self.hass.states.async_is_state_attr,
|
||||
'is_state': self.hass.states.is_state,
|
||||
'is_state_attr': self.hass.states.is_state_attr,
|
||||
'states': AllStates(self.hass),
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user