mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
Make sure blueprint cache is flushed on script reload (#67899)
This commit is contained in:
@@ -175,7 +175,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
"""Call a service to reload scripts."""
|
"""Call a service to reload scripts."""
|
||||||
if (conf := await component.async_prepare_reload()) is None:
|
if (conf := await component.async_prepare_reload()) is None:
|
||||||
return
|
return
|
||||||
|
async_get_blueprints(hass).async_reset_cache()
|
||||||
await _async_process_config(hass, conf, component)
|
await _async_process_config(hass, conf, component)
|
||||||
|
|
||||||
async def turn_on_service(service: ServiceCall) -> None:
|
async def turn_on_service(service: ServiceCall) -> None:
|
||||||
|
Reference in New Issue
Block a user