thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.05k stars 125 forks source link

show: doesn’t appear to accept templates #206

Open DesertNomadBear opened 2 years ago

DesertNomadBear commented 2 years ago

My Home Assistant version: 2022.8.4

Layout-card version (FROM BROWSER CONSOLE): 2.4.2

What I am doing: Setting the following config:

view_layout: show: |- {{ 'always' if expand(area_entities('Bedroom')) | selectattr('domain', 'eq', 'climate') | list | count > 0 else 'never' }}

Already checked in Developer Tools - Template and the result is correct: always

What I expected to happen:

What happened instead:

Minimal steps to reproduce:

The least ammount of code possible to reproduce my error

End of code



Error messages from the browser console:

---

**By putting an X in the boxes ([X]) below, I indicate that I:**

- [X] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
- [X] Have made sure I am using the latest version of the plugin.
- [X] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
- [X] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.