marstek-venus-rs485-node-red icon indicating copy to clipboard operation
marstek-venus-rs485-node-red copied to clipboard

dashboard.yaml contains broken/corrupted Jinja template rendering in v4.10.1

Open satscan1 opened this issue 6 months ago • 1 comments

HBC v4.10.1 dashboard.yaml appears to contain broken/corrupted Jinja formatting.

Examples found in the file:

% set first_ts = history[0].timestamp if history|length > 0 else end_ts %}

Expected:

{% set first_ts = history[0].timestamp if history|length > 0 else end_ts %}

Symptoms:

  • missing {%
  • malformed %}
  • broken multiline Jinja blocks
  • markdown/Jinja mixed incorrectly
  • dashboard rendering issues in newer HA versions

This appears inside dashboard.yaml from the v4.10.1 release package.

Environment:

  • Home Assistant 2026.x
  • HBC upgraded from 4.9.0 → 4.10.1

Possibly caused by:

  • corrupted upstream YAML
  • markdown rendering issue
  • accidental formatting during release packaging

Please verify dashboard.yaml in the v4.10.1 release assets.

satscan1 avatar May 26 '26 16:05 satscan1

Update: false alarm on my side.

The actual dashboard.yaml file is valid and uncorrupted.

The issue was caused by rendering/copy behavior in the Total Commander Lister viewer while viewing/copying multiline Jinja blocks. It visually dropped parts of {% %} sequences during copy/rendering, which made it appear as broken YAML/Jinja.

Verified:

  • YAML valid
  • Jinja balanced
  • UTF-8 valid
  • no corruption in the real file

Sorry for the confusion.

satscan1 avatar May 26 '26 17:05 satscan1