mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Async syntax 2, camera & climate & config (#17016)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
"""Provide configuration end points for Automations."""
|
||||
import asyncio
|
||||
from collections import OrderedDict
|
||||
import uuid
|
||||
|
||||
@@ -12,8 +11,7 @@ import homeassistant.helpers.config_validation as cv
|
||||
CONFIG_PATH = 'automations.yaml'
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_setup(hass):
|
||||
async def async_setup(hass):
|
||||
"""Set up the Automation config API."""
|
||||
async def hook(hass):
|
||||
"""post_write_hook for Config View that reloads automations."""
|
||||
|
||||
Reference in New Issue
Block a user