thomasloven / hass-lovelace_gen

🔹 Improve the lovelace yaml parser for Home Assistant
MIT License
209 stars 22 forks source link

Problems in Home Assistant in Docker container #59

Closed Mittlebenskrise closed 6 months ago

Mittlebenskrise commented 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.

Thanks, Michael

thomasloven commented 6 months ago

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.