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

Use enum for sensor setting type #2469

Merged
merged 3 commits into from
Apr 30, 2022

Conversation

NotWoods
Copy link
Contributor

Summary

Moving off a string type to a strict enum, since there are only certain valid values. Added a type converter to Room so this should be backwards compatible.

@NotWoods NotWoods force-pushed the sensor-manager-enum branch 3 times, most recently from 59fa9d6 to 5dc6b91 Compare April 22, 2022 06:34
Copy link
Collaborator

@JBassett JBassett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to solve the merge conflicts then it looks good.

@JBassett JBassett merged commit 2384f0f into home-assistant:master Apr 30, 2022
@dshokouhi
Copy link
Member

I think this PR may have changed how sensor settings behave in the app, now every setting is a text field instead of being things like a toggle or a list or even a numeric field. For toggles we now have to type true or false, list fields no longer show a list and numeric fields no longer restrict ot numeric keypad.

@NotWoods NotWoods deleted the sensor-manager-enum branch May 1, 2022 22:42
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.

None yet

4 participants