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: return slugs and unknown #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joostlek
Copy link
Collaborator

So for HA state translations to work, we need to return snake_cased state. This could be achieved by creating a generator that will get everything slugified, but that's not really performant. So this change will already slugify the posible states.

It will also return None when a state or brush mode can't be found because that would render as unknown which is correct imo

@Lash-L
Copy link
Collaborator

Lash-L commented Apr 25, 2024

Fine by me, just fix tests

@joostlek
Copy link
Collaborator Author

Yea found out after I closed my laptop, will work on it later.

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.

None yet

2 participants