-
-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Migrate ISY994 to PyISY v2 #35338
Migrate ISY994 to PyISY v2 #35338
Conversation
- Bare minimum changes to be able to support PyISYv2. - Renaming imports and functions to new names. - Use necessary constants from module. - **BREAKING CHANGE** Remove ISY Climate Module support. - Climate module was retired on 3/30/2020: [UDI Annoucement](https://www.universal-devices.com/byebyeclimatemodule/) - **BREAKING CHANGE** Device State Attributes use NodeProperty - Some attributes names and types will have changed as part of the changes to PyISY. If a user relied on a device state attribute for a given entity, they should check that it is still there and formatted the same. In general, *more* state attributes should be getting picked up now that the underlying changes have been made. - **BREAKING CHANGE** `isy994_control` event changes (using NodeProperty) - Control events now return an object with additional information. Control events are now parsed to the friendly names and will need to be updated in automations. Remove cast
Co-authored-by: J. Nick Koston <nick@koston.org>
Documentation link added in original description. |
Doing testing now |
@shbatm Looks like a few more the v2 conversion items need to make it into this PR |
@bdraco Missed a test between 3 & 4. Updated and confirmed tested on my end:
|
Test failure on
|
Everything appears to be working as expected |
Ran though another test cycle. Everything still good to go. |
Breaking change
PyISY Version 2 is a significant update to the original module used to communicate with the ISY. As part of the update and many bug fixes, some breaking changes were introduced:
enable_climate
configuration option will need be removed from yourconfiguration.yaml
file.isy994_control
events now return with additional information about the event. If a user relies on thecontrol
event property in Automations, these will need to be updated since the format has changed to include the additional detail.On Level
property instead of turning on to full brightness (if Home Assistant doesn't have a stored value for the last brightness).Proposed change
PyISY version 2 has been released which supports significant back-end updates but is not backwards-compatible with the current v1.1.2.
This is the third PR in a series (9 total) to include migration to PyISYv2 and "modernization" of the isy994 integration based on testing done over the past year in the HACS custom component.
Full migration plan is captured in PR #35212
This specific PR includes the necessary changed to add basic support and compatibility for the update module:
Type of change
Example entry for
configuration.yaml
:Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
Tag: @bdraco @OverloadUT