Skip to content

feat(entities): expose key settings as number/select entities (FEAT-9)#601

Merged
tempus2016 merged 1 commit into
mainfrom
feat/number-select-entities
Jun 26, 2026
Merged

feat(entities): expose key settings as number/select entities (FEAT-9)#601
tempus2016 merged 1 commit into
mainfrom
feat/number-select-entities

Conversation

@tempus2016

Copy link
Copy Markdown
Owner

FEAT-9 — number/select config entities

Adds number and select platforms so the points-bearing settings are readable/settable from automations, scripts and the HA UI without a service call — persisted through the same settings store the panel uses, so panel and entity stay in sync:

  • number: weekend_multiplier, perfect_week_bonus
  • select: streak_reset_mode, card_design

Registers Platform.NUMBER/SELECT, adds conftest stubs for both component modules, and entity name translations in all 9 locales.

Testing

  • Unit tests: value/default read, set persists int-vs-float correctly, select falls back on invalid stored value and rejects invalid options. 5 passed.
  • Live on ha-dev: all 4 entities present with correct states; number.set_value / select.select_option update both the entity and the underlying taskmate setting (verified card_design=playroom, weekend_multiplier=1.5 via WS get_state), then restored.

From AUDIT_REPORT.md §5 (FEAT-9).

Add number + select platforms so the points-bearing knobs are readable
and settable from automations/scripts and the HA UI without a service
call, persisted through the same settings store the panel uses (panel and
entity stay in sync):
- number: weekend_multiplier, perfect_week_bonus
- select: streak_reset_mode, card_design

Registers Platform.NUMBER/SELECT, adds conftest stubs, and entity name
translations in all 9 locales.

Tests: read/default, set (int vs float), invalid-option fallback/reject.
Verified live on ha-dev: all 4 entities present; number.set_value /
select.select_option update both the entity and the underlying setting
(card_design=playroom, weekend_multiplier=1.5 via WS get_state), restored.
@github-actions github-actions Bot added backend Python integration code translations i18n / locale strings tests Test suite labels Jun 26, 2026
@tempus2016 tempus2016 merged commit 8875edc into main Jun 26, 2026
10 checks passed
@tempus2016 tempus2016 deleted the feat/number-select-entities branch June 26, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Python integration code tests Test suite translations i18n / locale strings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant