Remove unnecessary assignment of Template.hass from intent_script (#123676)

This commit is contained in:
Erik Montnemery
2024-08-12 15:54:20 +02:00
committed by GitHub
parent 4dadf0ea1b
commit c47fdf7074

View File

@@ -90,7 +90,6 @@ async def async_reload(hass: HomeAssistant, service_call: ServiceCall) -> None:
def async_load_intents(hass: HomeAssistant, intents: dict[str, ConfigType]) -> None:
"""Load YAML intents into the intent system."""
template.attach(hass, intents)
hass.data[DOMAIN] = intents
for intent_type, conf in intents.items():