Repository navigation
0.12.1 follow-ups: entry states, monitoring refusal, sidebar fixes, unreachable code removed - #48
Merged
Merged
Conversation
…refusals, and drop unreachable code The card and the sidebar tell a panel that needs a restart from one whose setup failed or that is disabled, find the entry of a card configured before Home Assistant 2026.8 through the device registry's composite splits, and treat get_monitoring_status's monitoring_panel_not_loaded refusal as a wait. The sidebar says when no SPAN Panel exists, catches its panel list up after a lost connection, and lists every key of the current alert event. Code no production state reaches is removed: subscription catches Core never triggers, guards for a missing hass or connection, the sidebar's re-attach handling (the frontend builds a new element each time), SettingsTab, and the error store's setters, now passed in at construction.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follow-ups for 0.12.1, released as 0.12.1-beta.3 and bundled in SpanPanel/span 2.3.4b2.
Changes
migration_error,failed_unload) gets its own message, apart from a failed setup or a disabled entry.config/device_registry/list_composite_splits, so it reports those states too. A card whose panel was removed says it is unable to connect.get_monitoring_status's newmonitoring_panel_not_loadedrefusal is treated as a wait in every view, and views and side panels read monitoring again once a reload finishes.span_panel_current_alert,alert_display_nameincluded.hassor connection (HomeAssistant.connectionis now required);SettingsTab, MonitoringTab's Promise topology and three unused strings;_waitForrace fixed at its root, and a sampling interval that ran on after the dashboard was discarded is stopped.dist/is rebuilt in its own commit.Changelog (0.12.1, Fixed): new or changed in this PR
span_panel_current_alertevent, the newalert_display_name, the circuit's name as Home Assistant shows it, among them, where it left out the keys for the monitoring rating, the copied package ratings and when the overload began.Tests
npm test: 1830 passed, exit 0. Every new test fails on main. Lint, typecheck and i18n validation are clean.