mirror of
https://github.com/home-assistant/frontend.git
synced 2026-07-04 04:55:09 +01:00
daba5dd8be
A config flow field guarded by vol.In([1, 5, 6]) sends numeric option values, but the underlying select returns the chosen value as a string, and ha-form-select forwarded that string unchanged. On submit the backend validated "1" against [1, 5, 6] and rejected it as an invalid selection. Map the selected value back to its original option in ha-form-select so the source type is retained. String options are unaffected. The mapping is extracted into matchSelectOptionValue and covered by unit tests.