v2.0.0b7
Pre-release
Pre-release
·
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
-
Lovelace Card Picker Resolution (#277):
- Implemented
static getStubConfig()onMyHomeBusCardso 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: truewith defensive optional chaining (?.) on all shadow DOM element bindings in_bindEvents(). - Updated
window.customCardsregistration with in-place deduplication to cleanly handle single-page app tab navigation and cache updates.
- Implemented
-
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_cardto automatically copymyhome-bus-card.jsinto/config/www/myhome-bus-card.jsupon startup, providing zero-configuration/local/static serving compatibility.
- Enhanced
馃摝 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.