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

[feat] Add Support for number domain #64

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

rohankapoorcom
Copy link
Member

@rohankapoorcom rohankapoorcom commented Aug 16, 2023

This adds support for the number domain. The experience and limitations of the input_number domain apply to the number domain as well.

Fixes #43.

Since the logic is nearly identical between the number and input_number domains, I tried to generalize the controller by introducing another level of inheritance and creating a new NumericalController to handle the common behavior and only overriding the set _value() method for each. This ended up breaking the card and I decided to leave that refactor for another day.

@rohankapoorcom rohankapoorcom merged commit 03d20cf into custom-cards:main Aug 16, 2023
2 checks passed
@rohankapoorcom rohankapoorcom deleted the number-support branch August 16, 2023 07:28
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.

Unable to use Number Entity, even though HA displays it as a slider
1 participant