Update after service calls (#4795)
* Update after service calls * Service update: wrap async_update in create_task
This commit is contained in:
1 parent
37e3c2a133
commit
98fe50d5ad
6 files changed
+57
-30
No files matched your search
@@ -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'))
|
||||
|
||||
Reference in new issue
Block a user