Add init type hints [h-j] (#63187)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet
2022-01-02 16:31:48 +01:00
committed by GitHub
co-authored by epenet
parent 00ec874389
commit 1650332188
19 changed files with 71 additions and 45 deletions
@@ -4,7 +4,9 @@ import copy
import voluptuous as vol
from homeassistant.const import CONF_TYPE
from homeassistant.core import HomeAssistant
from homeassistant.helpers import config_validation as cv, intent, script, template
from homeassistant.helpers.typing import ConfigType
DOMAIN = "intent_script"
@@ -44,7 +46,7 @@ CONFIG_SCHEMA = vol.Schema(
)
async def async_setup(hass, config):
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Activate Alexa component."""
intents = copy.deepcopy(config[DOMAIN])
template.attach(hass, intents)