2.0.0-beta.3 — the panel stays put
Pre-releaseFixes the sidebar item disappearing after an update. The panel is now called Marstek Modbus and lives at /marstek-modbus.
Why it vanished
Removal was wired to async_unload_entry. Home Assistant calls that on every reload and every options change, not only when a battery is deleted — so the panel was torn down as a matter of routine and only reappeared if the setup that followed put it back. Anything going wrong in between left no sidebar item at all.
It now goes away in async_remove_entry, where removal means removal.
Registering it has also moved out of the block whose except rolls the entire setup back, and it logs at info rather than debug. A sidebar item is not worth refusing to load a battery over, and the silence was what made this hard to find.
Names carry the domain now
| before | now | |
|---|---|---|
| sidebar | Marstek Venus | Marstek Modbus |
| path | /marstek-venus |
/marstek-modbus |
| element | marstek-panel |
marstek-modbus-panel |
| bundle | marstek-panel.js |
marstek-modbus-panel.js |
A custom element name is global to the page. Another integration serving a file of the same name would define the same element, the second definition throws, and that panel stays blank — a failure with no error anywhere near the cause. The prefix removes the possibility.
If you had the old panel pinned or bookmarked, the URL changed.
Upgrading
A full Home Assistant restart, not a reload.