Skip to content

Fix light selector in config_flow#58

Merged
chazzu merged 1 commit intochazzu:masterfrom
Snuffy2:Fix-value-should-be-a-list-error-in-config_flow
Oct 6, 2025
Merged

Fix light selector in config_flow#58
chazzu merged 1 commit intochazzu:masterfrom
Snuffy2:Fix-value-should-be-a-list-error-in-config_flow

Conversation

@Snuffy2
Copy link
Contributor

@Snuffy2 Snuffy2 commented Oct 5, 2025

This pull request refactors error handling and validation logic in the animated_scenes configuration flow, improving consistency and user feedback. It also updates the schema for selecting lights to ensure compatibility with Home Assistant's platform constants. The most important changes are grouped below:

Validation Improvements:

  • Adds a check to ensure that at least one light is selected during scene configuration, providing clear error feedback if none are chosen. [1] [2] [3]

Schema Updates:

  • Updates the light selector schema to use Platform.LIGHT for domain specification and sets the default to an empty list, improving compatibility and preventing schema errors. [1] [2]

Other Minor Fixes:

  • Ensures default values are correctly set and schema extension logic is streamlined for better maintainability. [1] [2]

These changes collectively improve the reliability, maintainability, and user experience of the configuration flow for animated scenes.

Fixes #54

@Snuffy2 Snuffy2 force-pushed the Fix-value-should-be-a-list-error-in-config_flow branch from 1321ffc to 82947de Compare October 5, 2025 02:29
@Snuffy2 Snuffy2 marked this pull request as ready for review October 5, 2025 02:31
@chazzu chazzu merged commit 4e3c147 into chazzu:master Oct 6, 2025
3 checks passed
@Snuffy2 Snuffy2 deleted the Fix-value-should-be-a-list-error-in-config_flow branch October 6, 2025 01:43
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.

"value should be a list" error

2 participants