Fix config imports (#27669)

* Fix config imports

* Remove old migration

* Remove migrate tests
This commit is contained in:
Paulus Schoutsen 2019-10-15 16:15:26 -07:00 committed by GitHub
parent c700085490
commit 93f9afcd21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 90 deletions

View file

@ -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,