thomasloven / hass-lovelace_gen

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

Variables not working since 2022.7 #40

Open Idan37S opened 1 year ago

Idan37S commented 1 year ago

Since HA 2022.7 I'm getting "Unknown error" without any errors in the console or logs. I can't get the UI to show until I remove the variables usage.

Anyone else having this issue? Is anyone able to work with variables in 2022.7+?

Doesn't work:

title: FloorPlan Desktop
views:
  - !include
    - lovelace_floorplan_data.yaml
    - floorplan_type: desktop

Works:

title: FloorPlan Desktop
views:
  - !include lovelace_floorplan_data.yaml
IDmedia commented 1 year ago

Duplicate of https://github.com/thomasloven/hass-lovelace_gen/issues/39

rohankapoorcom commented 1 year ago

I just put up a PR that should fix this in #42. It undoes the performance improvement (using the C Loader for YAML) from Home Assistant 2022.7, but that seems to be an acceptable trade off.