Add config flow, use async loading, and restore brightness option to ISY994#35413
Add config flow, use async loading, and restore brightness option to ISY994#35413bdraco merged 5 commits intohome-assistant:devfrom shbatm:isy994_v2_pr5
Conversation
Add tests for config flow Fix test Update Tests
Test failure is unrelated |
|
/AzurePipelines Run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Failed tests are unrelated, but isy994 tests are showing on the list of long runs times. Can you double check and see if there's something I missed that may be resulting in the slow calls? |
The ones that will actually get to creating an entry need this in the |
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: J. Nick Koston <nick@koston.org>
|
Fixed patches. |
|
At this point the code looks good so I'm doing another manual test run though |
|
Passes the 'siri, turn on all the lights test' in ~98 seconds. 148 context switches since requests are sync 🙈 When this is all merged up, we should look at converting at least the rest api requests to async. |
I'm surprised the ISY didn't choke on that many requests. More motivation for automicus/PyISY#53 (comment) Test will be updated for next PR. Also have @MartinHjelmare suggested changed to sensors / binary sensor states queued for the end of this PR chain, but for best effect it will need automicus/PyISY#100 merged. |
McGiverGim
left a comment
There was a problem hiding this comment.
I have detected this errors in lokalise.
|
I know this PR has been merged, but I have detected this two errors in lokalise. |
|
Fixed in open PR #35467. |
Breaking change
The ISY994 integration now includes a
restore_light_stateoption. In 0.109.0, a change was made to restore a light's brightness to the previous state when turned on with nobrightnessparameter. This was, in part, to fix an issue where the light to turn on to full brightness when no parameters were given, regardless of the physical device'sOn Levelbrightness setting. Using theOn Levelis now supported and is the default behavior. To keep the current behavior and use Home Assistant's last brightness, set therestore_light_stateis set toTrueor enable the option in the new config flow options.Proposed change
This is the fifth PR in a series (~10 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 add a config and options flow for the ISY994 integration and adds support for the
restore_light_stateoption.As part of the config flow changes,
unique_idswill be migrated to a new format which includes theuuidof the ISY they are associated with. The config flow supports adding multiple ISYs; however, Z-Wave and NodeServer Nodes can share addresses across ISYs, so an additional identifier is required. This should be a seamless update and is not labelled as a breaking change. Entity IDs should not change.Type of change
Example entry for
configuration.yaml:Additional information
Local Tests Performed
configuration.yamlChecklist
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