v1.2.6
v1.2.6
Release Date: 2026-01-09
Patch release - Fixes empty recovery script validation error in options flow.
What's Changed
Bug Fixes
- Fixed empty recovery script validation - When saving options with an empty recovery script field, the
form no longer shows "Entity is neither a valid entity ID nor a valid UUID" error
Issue Fixed
This release fixes #190 - Error when saving
options with empty recovery script field.
Thanks to @shiner66 for reporting this issue!
Technical Details
The EntitySelector for the optional recovery_script field was rejecting empty strings as invalid entity IDs.
The fix:
- Input preprocessing - Convert empty string to
Nonebefore validation inasync_step_init() - Schema improvement - Use
suggested_valueinstead ofdefaultfor the optional entity selector
This ensures the EntitySelector receives None (valid) instead of "" (invalid) when no script is selected.
Files Changed
custom_components/sinapsi_alfa/config_flow.py- Options flow empty string handlingtests/test_config_flow.py- Updated test to match new behavior