Drop deepcopy of intent_script config (#89285)

This commit is contained in:
Erik Montnemery 2023-03-07 16:16:24 +01:00 committed by GitHub
parent f48b535d9d
commit f5a3c4f7f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,6 @@
"""Handle intents with scripts."""
from __future__ import annotations
import copy
import logging
import voluptuous as vol
@ -57,8 +56,8 @@ CONFIG_SCHEMA = vol.Schema(
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Activate Alexa component."""
intents = copy.deepcopy(config[DOMAIN])
"""Set up the intent script component."""
intents = config[DOMAIN]
template.attach(hass, intents)
for intent_type, conf in intents.items():