Fix config imports (#27669)
* Fix config imports * Remove old migration * Remove migrate tests
This commit is contained in:
parent
c700085490
commit
93f9afcd21
5 changed files with 21 additions and 90 deletions
|
@ -1,12 +1,11 @@
|
|||
"""Provide configuration end points for scripts."""
|
||||
from homeassistant.components.script import DOMAIN, SCRIPT_ENTRY_SCHEMA
|
||||
from homeassistant.const import SERVICE_RELOAD
|
||||
from homeassistant.config import SCRIPT_CONFIG_PATH
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from . import EditKeyBasedConfigView
|
||||
|
||||
CONFIG_PATH = "scripts.yaml"
|
||||
|
||||
|
||||
async def async_setup(hass):
|
||||
"""Set up the script config API."""
|
||||
|
@ -19,7 +18,7 @@ async def async_setup(hass):
|
|||
EditKeyBasedConfigView(
|
||||
"script",
|
||||
"config",
|
||||
CONFIG_PATH,
|
||||
SCRIPT_CONFIG_PATH,
|
||||
cv.slug,
|
||||
SCRIPT_ENTRY_SCHEMA,
|
||||
post_write_hook=hook,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue