mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Update after service calls (#4795)
* Update after service calls * Service update: wrap async_update in create_task
This commit is contained in:
@@ -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