Refactor config integration to use normal functions for setup (#110750)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
d7f650ed7c
commit
50770ce436
17 changed files with 40 additions and 40 deletions
|
@ -10,13 +10,14 @@ from homeassistant.components.script.config import (
|
|||
)
|
||||
from homeassistant.config import SCRIPT_CONFIG_PATH
|
||||
from homeassistant.const import SERVICE_RELOAD
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers import config_validation as cv, entity_registry as er
|
||||
|
||||
from . import ACTION_DELETE, EditKeyBasedConfigView
|
||||
|
||||
|
||||
async def async_setup(hass: HomeAssistant) -> bool:
|
||||
@callback
|
||||
def async_setup(hass: HomeAssistant) -> bool:
|
||||
"""Set up the script config API."""
|
||||
|
||||
async def hook(action: str, config_key: str) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue