diff --git a/custom_components/lovelace_gen/__init__.py b/custom_components/lovelace_gen/__init__.py index b7905fc..1c51672 100644 --- a/custom_components/lovelace_gen/__init__.py +++ b/custom_components/lovelace_gen/__init__.py @@ -68,7 +68,9 @@ def _uncache_file(ldr, node): loader.PythonSafeLoader.add_constructor("!file", _uncache_file) async def async_setup(hass, config): - llgen_config.update(config.get("lovelace_gen")); + conf = config.get("lovelace_gen") + llgen_config.update(conf) + hass.states.async_set("lovelace_gen.data", "loaded", conf, force_update=True) return True # Allow redefinition of node anchors