Adjust BaseEditConfigView.__init__ (#126729)

This commit is contained in:
Erik Montnemery 2024-09-27 19:08:12 +02:00 committed by GitHub
parent 46812777e2
commit c5b4892596
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 53 additions and 13 deletions

View file

@ -5,10 +5,7 @@ from __future__ import annotations
from typing import Any
from homeassistant.components.script import DOMAIN as SCRIPT_DOMAIN
from homeassistant.components.script.config import (
SCRIPT_ENTITY_SCHEMA,
async_validate_config_item,
)
from homeassistant.components.script.config import async_validate_config_item
from homeassistant.config import SCRIPT_CONFIG_PATH
from homeassistant.const import SERVICE_RELOAD
from homeassistant.core import HomeAssistant, callback
@ -45,7 +42,6 @@ def async_setup(hass: HomeAssistant) -> bool:
"config",
SCRIPT_CONFIG_PATH,
cv.slug,
SCRIPT_ENTITY_SCHEMA,
post_write_hook=hook,
data_validator=async_validate_config_item,
)