Skip to content

v0.4.2-beta.5

Pre-release
Pre-release

Choose a tag to compare

@VysseCodes VysseCodes released this 12 Sep 03:15
· 1 commit to main since this release

[Unreleased]

Fixed

  • Weather view icons were cut off. The stock Weather view's message area
    had two invalid CSS declarations - height: 100vdh (not a real unit) and
    padding: -10% (negative padding is invalid) - both silently dropped by
    the browser, leaving the area to size around whatever content fit instead
    of filling its grid row. That is what clipped the weather-forecast card's
    large icons (present on the real View Assist dashboard too). Corrected to
    height: 100% and padding: 0 on the generated dashboard only.

  • A leftover chromhasettings.yaml example view cloned in as a second,
    broken "Theme" tab.
    Before the automatic dashboard existed,
    examples/view-assist/README.md told people to copy
    chromhaclock/chromhacontrols/chromhasettings into
    /config/view_assist/views/ by hand. Anyone who did still has them there,
    and the dashboard clone had no way to know they were obsolete - so
    chromhasettings.yaml's hardcoded example profile (chromha_ryan) cloned
    in as a tab confusingly also titled "Theme", pointing the ChromHA card at
    an accent entity that only exists if your profile happens to be named
    "ryan". These three legacy views are now skipped during cloning (with a
    warning naming the file to delete), and the README no longer recommends
    installing them.

Changed

  • The ChromHA View Assist dashboard is now a clone of your actual View
    Assist dashboard, not a hand-built substitute.
    0.4.0/0.4.1 generated
    original Home/Weather/Controls views from scratch, gated behind a Push
    to View Assist
    target per profile - a mismatch with what people actually
    wanted, which was their real View Assist dashboard with ChromHA's colours.

    It now reads every view file under /config/view_assist/views/ plus the
    dashboard's shared button_card_templates, and colour-patches both with
    the same substitutions examples/view-assist/convert.py already applies
    to a user's own copy - just automatic, and into a separate dashboard
    instead of View Assist's own. A Theme view (colour wheel + Solid/Glass
    per profile) is appended. The dashboard is now rewritten on every rebuild
    (previously created once and left alone) so it tracks your real View
    Assist setup as it changes - the same "generated, don't hand-edit"
    contract the theme file already has. New module: dashboard_converter.py.

Fixed

  • The colour picker didn't always stick. chromha-card.js fired an
    unserialised text.set_value call on every colour change. Two picks made
    in quick succession (a very ordinary way to use a colour wheel) raced:
    nothing guaranteed the first call's write couldn't land after the
    second's, silently reverting to an earlier colour depending on timing.
    Commits are now serialised - never more than one write in flight, always
    sending only the latest value - which makes that reordering impossible
    rather than just unlikely.

  • A stale, wrapped View Assist view file produced an invalid card. If a
    file under /config/view_assist/views/ was copied in the wrapped
    views:/cards: shape instead of a bare button-card - as ChromHA's own
    example views did before 0.4.0 - the dashboard clone wrapped it a second
    time, producing a card with no type (a broken card in the UI). Detected
    and unwrapped automatically now, with a warning logged pointing at which
    file is still in the wrong shape on disk.

  • Dynamic view titles rendered as literal garbage. A Lovelace view's own
    title: is never template-evaluated - only a button-card's own config is

    • so a view whose title was a [[[ ... ]]] expression (View Assist's
      stock locate and music views both do this) showed that literal text in
      the tab bar instead of anything useful. The generated dashboard now
      rejects a templated title and falls back to a plain name derived from the
      view's own filename - a ChromHA-dashboard-only substitution; the source
      view file is untouched.
  • Weather's background was still blue after conversion. Not a simple
    background-color: line - View Assist's stock Weather view sets it via
    card_mod CSS text (ha-card { background: #059bf9 }), which the colour
    patcher's structural patterns never looked inside. That exact colour is
    the Alert view's own deliberate blue, reused here seemingly by copy-paste;
    now patched to the theme background everywhere except the Alert view
    itself, in both dashboard_converter.py and examples/view-assist/convert.py.