Skip to content

[feat] Add Support for number domain#64

Merged
rohankapoorcom merged 2 commits into
custom-cards:mainfrom
rohankapoorcom:number-support
Aug 16, 2023
Merged

[feat] Add Support for number domain#64
rohankapoorcom merged 2 commits into
custom-cards:mainfrom
rohankapoorcom:number-support

Conversation

@rohankapoorcom

@rohankapoorcom rohankapoorcom commented Aug 16, 2023

Copy link
Copy Markdown
Member

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
@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