Skip to content

Source panel_size from Homie schema unconditionally#182

Merged
cayossarian merged 1 commit intomainfrom
dynamic_panel_size
Mar 9, 2026
Merged

Source panel_size from Homie schema unconditionally#182
cayossarian merged 1 commit intomainfrom
dynamic_panel_size

Conversation

@cayossarian
Copy link
Member

Summary

  • panel_size is now sourced from the Homie schema by span-panel-api>=2.2.3 at connection time, replacing a circuit-count heuristic that undercounted when trailing breaker positions were empty
  • The panel_size sensor attribute and WebSocket topology field are now unconditionally populated
  • Adds tests for extra_state_attributes (panel_size, wifi_ssid)
  • Bumps version to 2.0.2

Test plan

  • All 351 existing tests pass
  • New tests verify panel_size is always present in extra_state_attributes
  • New tests verify wifi_ssid inclusion/exclusion logic
  • Verify on a physical panel with unused trailing breaker slots that panel_size now reports the correct full size
  • Verify span-card layout reflects the correct number of slots

panel_size is now provided by span-panel-api>=2.2.3 from the Homie
schema at connection time, replacing the circuit-count heuristic that
undercounted when trailing breaker positions were empty. The sensor
attribute and WebSocket topology field are now always populated.

Add tests for extra_state_attributes (panel_size, wifi_ssid).
Bump version to 2.0.2.
@cayossarian cayossarian merged commit fad1665 into main Mar 9, 2026
16 of 18 checks passed
@cayossarian cayossarian deleted the dynamic_panel_size branch March 9, 2026 22:12
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.

1 participant