We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aaac02 commit 88496cfCopy full SHA for 88496cf
custom_components/pyscript/__init__.py
@@ -97,8 +97,10 @@ async def reload_scripts_handler(call):
97
await load_scripts(hass)
98
99
for global_ctx_name, global_ctx in GlobalContextMgr.items():
100
- if not global_ctx_name.startswith("file."):
+ idx = global_ctx_name.find(".")
101
+ if idx < 0 or global_ctx_name[0:idx] not in {"file", "apps"}:
102
continue
103
+ global_ctx.set_auto_start(True)
104
global_ctx.start()
105
106
hass.services.async_register(DOMAIN, SERVICE_RELOAD, reload_scripts_handler)
0 commit comments