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

refactor to use modern attr patterns #55

Merged
merged 1 commit into from
Nov 20, 2022

Conversation

dwradcliffe
Copy link
Contributor

The current recommended way to set entity properties is with attributes named via convention: https://developers.home-assistant.io/docs/core/entity#entity-class-or-instance-attributes

This removes a lot of boilerplate code which keeps things simpler.

@dwradcliffe
Copy link
Contributor Author

Also this will fix #52

@roopesh
Copy link
Contributor

roopesh commented Oct 8, 2022

When will this be merged? The error indicates 2022.10 will break the integration, so I haven't upgraded yet.

@dwradcliffe
Copy link
Contributor Author

dwradcliffe commented Oct 8, 2022

I don’t really want to fork, but you can temporarily use my repo as it has the fix on main. You will need to remove and add my repo in HACS. The config should just work on boot.

@roopesh
Copy link
Contributor

roopesh commented Oct 18, 2022

@dwradcliffe did you see this Error 400 report? #58. I haven't installed from your repo yet. I also haven't upgrade to 2022.10 yet :)

@jlvaillant jlvaillant merged commit a831d65 into jlvaillant:main Nov 20, 2022
@dwradcliffe dwradcliffe deleted the attrs branch November 20, 2022 17:47
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.

3 participants