Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't force on/yes/y/off/no/n to booleans for service button #3858

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

jpelgrom
Copy link
Member

Summary

Fix #3715 by relaxing string conversion to boolean as this breaks other use cases. The app isn't a full YAML parser, and doesn't need to be as the user can enter true/false in the same text field.

This will not be a breaking change as existing widgets have already had their on/yes/y/off/no/n strings* converted to true/false, which will continue to work.

*Depending on the YAML version these weren't a valid boolean anyway so confusion everywhere.

Screenshots

n/a

Link to pull request in Documentation repository

I couldn't find documentation about Home Assistant's YAML version or parsing anywhere so I think it's OK not to mention this anywhere.

Any other notes

 - Relax string conversion to boolean as this breaks other use cases.
@JBassett JBassett merged commit 50a8b9e into home-assistant:master Sep 13, 2023
@jpelgrom jpelgrom deleted the yaml-true-false-only branch September 13, 2023 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android Switch Widget can't deal with off as hvac value, value gets "converted" to false
3 participants