mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 03:19:34 +00:00
Async syntax 2, camera & climate & config (#17016)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
"""Provide configuration end points for scripts."""
|
||||
import asyncio
|
||||
|
||||
from homeassistant.components.config import EditKeyBasedConfigView
|
||||
from homeassistant.components.script import DOMAIN, SCRIPT_ENTRY_SCHEMA
|
||||
@@ -10,8 +9,7 @@ import homeassistant.helpers.config_validation as cv
|
||||
CONFIG_PATH = 'scripts.yaml'
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
def async_setup(hass):
|
||||
async def async_setup(hass):
|
||||
"""Set up the script config API."""
|
||||
async def hook(hass):
|
||||
"""post_write_hook for Config View that reloads scripts."""
|
||||
|
||||
Reference in New Issue
Block a user