mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Drop deepcopy of intent_script config (#89285)
This commit is contained in:
parent
f48b535d9d
commit
f5a3c4f7f5
@ -1,7 +1,6 @@
|
|||||||
"""Handle intents with scripts."""
|
"""Handle intents with scripts."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import copy
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
@ -57,8 +56,8 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
|
|
||||||
|
|
||||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||||
"""Activate Alexa component."""
|
"""Set up the intent script component."""
|
||||||
intents = copy.deepcopy(config[DOMAIN])
|
intents = config[DOMAIN]
|
||||||
template.attach(hass, intents)
|
template.attach(hass, intents)
|
||||||
|
|
||||||
for intent_type, conf in intents.items():
|
for intent_type, conf in intents.items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user