Fix config imports (#27669)
* Fix config imports * Remove old migration * Remove migrate tests
This commit is contained in:
1 parent
c700085490
commit
93f9afcd21
5 files changed
+21
-90
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user