Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load the metadata into a hass entity #60

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion custom_components/lovelace_gen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down