Update after service calls (#4795)

* Update after service calls

* Service update: wrap async_update in create_task
This commit is contained in:
Paulus Schoutsen 2016-12-06 22:30:47 -08:00 committed by GitHub
parent 37e3c2a133
commit 98fe50d5ad
6 changed files with 57 additions and 30 deletions

View file

@ -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'))