Update after service calls (#4795)
* Update after service calls * Service update: wrap async_update in create_task
This commit is contained in:
parent
37e3c2a133
commit
98fe50d5ad
6 changed files with 57 additions and 30 deletions
|
@ -85,8 +85,11 @@ def setup(hass, config):
|
|||
else:
|
||||
item.unlock(code=code)
|
||||
|
||||
if item.should_poll:
|
||||
item.update_ha_state(True)
|
||||
for item in target_locks:
|
||||
if not item.should_poll:
|
||||
continue
|
||||
|
||||
item.update_ha_state(True)
|
||||
|
||||
descriptions = load_yaml_config_file(
|
||||
os.path.join(os.path.dirname(__file__), 'services.yaml'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue