Refactor config integration to use normal functions for setup (#110750)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
J. Nick Koston 2024-02-16 18:12:33 -06:00 committed by GitHub
parent d7f650ed7c
commit 50770ce436
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 40 additions and 40 deletions

View file

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