Skip to content

v1.2.5

Choose a tag to compare

@arszagi arszagi released this 06 May 22:00
· 2 commits to main since this release

What's changed

Sensors no longer go unavailable at night

Previously, when no buses were running (night, off-peak, RT outage),
departure sensors would become unavailable — causing Lovelace cards
to lose their badge colors, line numbers and destinations.

From v1.2.5:

  • The sensor stays available as long as Home Assistant can reach the API
  • When no departures are found, the state is empty (None) instead of unavailable
  • All attributes from the last known departure are preserved in memory:
    line, destination, badge_background, badge_text, badge_border,
    badge_text_border, prediction, etc.
  • Lovelace cards keep displaying correctly throughout the night

Note: the cached attributes are stored in memory only — they are lost
if Home Assistant restarts while no buses are running.
A full persistence solution (surviving restarts) is planned for a future release.