From c608cafebdc28f0bb49aef83c9f8d3152964d579 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Wed, 9 Mar 2022 20:21:31 +0100 Subject: [PATCH] Make sure blueprint cache is flushed on script reload (#67899) --- homeassistant/components/script/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/script/__init__.py b/homeassistant/components/script/__init__.py index 593e585c4a5..2b9c9976ce4 100644 --- a/homeassistant/components/script/__init__.py +++ b/homeassistant/components/script/__init__.py @@ -175,7 +175,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: """Call a service to reload scripts.""" if (conf := await component.async_prepare_reload()) is None: return - + async_get_blueprints(hass).async_reset_cache() await _async_process_config(hass, conf, component) async def turn_on_service(service: ServiceCall) -> None: