Make sure blueprint cache is flushed on script reload (#67899)

This commit is contained in:
Joakim Plate 2022-03-09 20:21:31 +01:00 committed by GitHub
parent eee0c5372c
commit 251691f5b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: