Skip to content

Version 1.6.1 - #26

Merged
Jumpmaster2 merged 1 commit into
mainfrom
ccr-b59aa6c2-o1w4pe
Oct 22, 2026
Merged

Jumpmaster2 merged 1 commit into
mainfrom
ccr-b59aa6c2-o1w4pe

Conversation

@Jumpmaster2

Copy link
Copy Markdown
Owner

Panel opens on the first tap.

panel.js loaded labels.js with a top-level await. The load event of a module script fires before such a module has finished, so Home Assistant created the panel element before it was defined and set hass, narrow and panel as plain properties. The element was upgraded later without its setters ever running: a black page until the panel was opened again.

  • labels.js is a static import again; the versioned panel path already keeps it new after an update.
  • Properties set before the element was defined are handed to the setters in the constructor.

Verified in Chromium with a page that mimics Home Assistant's module loading on a slow network: the old version stays empty, the new one renders on the first open; each of the two changes alone is enough.


Generated by Claude Code

panel.js loaded labels.js with a top-level await. The load event of a
module script fires before such a module has finished, so Home Assistant
created the panel element before it was defined and set hass, narrow and
panel as plain properties. The element was upgraded later without its
setters ever running: a black page until the panel was opened again.

- labels.js is a static import again; the versioned panel path already
  keeps it new after an update.
- Properties set before the element was defined are handed to the
  setters in the constructor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HsuwRo43inrfehfjHtdCNb
@Jumpmaster2
Jumpmaster2 merged commit da8e6ed into main Oct 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants