Skip to content

v2.0.0b7

Pre-release
Pre-release

Choose a tag to compare

@GreenGrassBlueOcean GreenGrassBlueOcean released this 10 Sep 20:20
· 373 commits to v2-phase1-architecture since this release

馃殌 Hotfix Pre-Release: v2.0.0b7

This release resolves the card picker loading spinner issue (#277) and adds automatic fail-safe card synchronization.


馃専 Key Changes

  1. Lovelace Card Picker Resolution (#277):

    • Implemented static getStubConfig() on MyHomeBusCard so Home Assistant's card picker resolves initial card configuration cleanly without timing out on element class inspection.
    • Added static getConfigForm() providing visual configuration options (title, max_frames).
    • Enabled preview: true with defensive optional chaining (?.) on all shadow DOM element bindings in _bindEvents().
    • Updated window.customCards registration with in-place deduplication to cleanly handle single-page app tab navigation and cache updates.
  2. Dual-Route Static Path Registration & /config/www/ Fail-Safe Sync:

    • Enhanced _async_register_frontend() to register both /myhome_static (directory) and /myhome_static/myhome-bus-card.js (file) with robust fallback support across diverse Home Assistant HTTP server versions (StaticPathConfig).
    • Added _sync_www_card to automatically copy myhome-bus-card.js into /config/www/myhome-bus-card.js upon startup, providing zero-configuration /local/ static serving compatibility.

馃摝 Quick Upgrade Instructions

In your Home Assistant terminal (or via SSH):

cd /config/custom_components
wget -O myhome_b7.zip https://github.com/OpenWebNet-HA/MyHOME/releases/download/2.0.0b7/myhome.zip
rm -rf myhome
unzip -q myhome_b7.zip -d myhome
rm myhome_b7.zip
grep '"version"' myhome/manifest.json
ha core restart

(Verify output prints "version": "2.0.0b7" before restarting).

After restarting, perform a hard browser refresh (Ctrl + F5 / Cmd + Shift + R) to load the updated frontend bundle.