-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor, add Ventura support #4
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
Conversation
fetch product_id() from model hide preset dataclass to pass init add VMD base class
adjust CLI to use VMD CLI
fetch product_id() from model hide preset dataclass to pass init add VMD base class
adjust CLI to use VMD CLI
Had to pull --rebase + fix merge conflicts, but that created 70 extra commits. Better to squash merge this instead of adding all these commits. Thanks for installing the Lint workflow (see it in my own branch). Will fix the errors 1 by 1. Keeps me focussed ;-) |
…entura # Conflicts: # cli.py # pyproject.toml # src/pyairios/__init__.py # src/pyairios/client.py # src/pyairios/data_model.py # src/pyairios/models/brdg_02r13.py # src/pyairios/models/vmd_02rps78.py # src/pyairios/models/vmn_05lm02.py # tests/test_one.py
… into eb-ventura
This package contains all remaining bullets. Is it worth the effort to pull it apart?
|
I have started to pick the changes slowly in a new branch on top of main because it is really hard to follow the commits. Please avoid merges in pull requests, always rebase on top of main. I will comment on some changes. |
|
||
class RegisterAccess(Flag): | ||
"""Register access flags.""" | ||
class RegisterAccess(IntEnum): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong. The access is a bitmask.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have thought so, but 3 combined access level flags didn't work, meaning I could not write to an RW register in CLI master.
Perhaps a fix is defining register access flags between extra pair of brackets ( | )
I will push picked changes to https://github.com/scabrero/pyairios/tree/ventura and then merge it, unless you prefer to clean up this and rebase on top of main without merge commits. |
I transferred the changes to a fresh branch/PR #12. To pass all checks, added a number of None checks. |
We are continuing in PR #4 , closing this |
Overview
models/
directory, 1. Move models to folder #9models/
directory..Node
and dataNodeData
.__init__
(integration access).NO_CAP
to capabilities enum to fake the capabilities register, which the HA integration Fan relies on but Ventura does not support..Note: will require simultaneous update of homeassistant-airios-component to pick up changes in data received.
I will offer separate PR's so you can merge them (first 2 merged). Full code reads/writes to a device OK by now 😁.