feat(entities): expose key settings as number/select entities (FEAT-9)#601
Merged
Conversation
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.
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.
FEAT-9 — number/select config entities
Adds
numberandselectplatforms 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:weekend_multiplier,perfect_week_bonusstreak_reset_mode,card_designRegisters
Platform.NUMBER/SELECT, adds conftest stubs for both component modules, and entity name translations in all 9 locales.Testing
number.set_value/select.select_optionupdate both the entity and the underlying taskmate setting (verifiedcard_design=playroom,weekend_multiplier=1.5via WSget_state), then restored.From AUDIT_REPORT.md §5 (FEAT-9).