5) There is no text shown in the secondary info area
6) NOTE:
If I change the template to content: "{{ state_attr('sun.sun', 'elevation') }}";, it renders correctly. The render issue only appears when rendering via a macro.
Error messages from the browser console:
This appears unrelated, but shared for completeness:
[Error] TypeError: null is not an object (evaluating 'e.hass.config.location_name') — original-states-strategy.ts:71
(anonymous function) (5226-t5bb6snarI0.js:1:29299)
By putting an X in the boxes ([]) below, I indicate that I:
[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.
My Home Assistant version: 2023.9.2
My lovelace configuration method (GUI or yaml): YAML
What I am doing: I am trying to render a reusable Jinja macro inside the secondary info of an entity row.
What I expected to happen: The output of the macro is shown in the secondary info field of the entity row.
What happened instead: No output is shown
Minimal steps to reproduce: This is a simple set of steps to reproduce, not illustrative of a real-world use case.
1) Create a reusable Jinja macro in
/config/custom_templates/sun.jinja
, containing2) Reload the custom Jinja integration
3) Verify output in the Template Developer Tool Input:
Output result is a string:
The elevation is 46.62
4) Create an entities card, using card-mod to modify the secondary info text with the same template used in 3):
5) There is no text shown in the secondary info area
6) NOTE: If I change the template to
content: "{{ state_attr('sun.sun', 'elevation') }}";
, it renders correctly. The render issue only appears when rendering via a macro.Error messages from the browser console: This appears unrelated, but shared for completeness:
By putting an X in the boxes ([]) 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.