Closed Mittlebenskrise closed 6 months ago
I run HA in a Docker container () and wanted to use lovelace_gen. First problem was, that PythonSafeLoader did not exist (line 67 in init,px):
loader.PythonSafeLoader.add_constructor("!include", _include_yaml) loader.PythonSafeLoader.add_constructor("!file", _uncache_file)
Just removing PythonSafeLoader made it work:
loader.add_constructor("!include", _include_yaml) loader.add_constructor("!file", _uncache_file)
However, where do I now place the # lovelace_gen if I want to use it in the UI to loop through my entities? If I add it in the raw editor, it tells me that any comments will be removed.
# lovelace_gen
Thanks, Michael
The latest release only works with the latest release of Home Assistant (2023.12.0 or later).
And lovelace_gen does not work in UI mode.
I run HA in a Docker container () and wanted to use lovelace_gen. First problem was, that PythonSafeLoader did not exist (line 67 in init,px):
loader.PythonSafeLoader.add_constructor("!include", _include_yaml) loader.PythonSafeLoader.add_constructor("!file", _uncache_file)
Just removing PythonSafeLoader made it work:
loader.add_constructor("!include", _include_yaml) loader.add_constructor("!file", _uncache_file)
However, where do I now place the
# lovelace_gen
if I want to use it in the UI to loop through my entities? If I add it in the raw editor, it tells me that any comments will be removed.Thanks, Michael