Add support for Stretch product to Plugwise integration#40108
Add support for Stretch product to Plugwise integration#40108ctalkington merged 18 commits intohome-assistant:devfrom
Conversation
bd6da41 to
41637cd
Compare
41637cd to
90e0827
Compare
|
Catch-up with dev wrt #40543 |
86f2aac to
81d8909
Compare
|
Catchup with dev (mostly with ourselves from #41201) complete. |
e2f976c to
e877a30
Compare
|
Catched up with dev, should be fine for final review and eventual merge! |
e877a30 to
31c588f
Compare
|
Catchup with dev - still waiting eagerly for review. (Our backlog of changes is building waiting for these PRs to be merged, among them the requested integration closing #35713). |
|
Also fixes #42684 |
|
Also fixes #42725 |
|
Hi @ctalkington - I think we addressed the requested changes, could you recheck? |
| username=entry.data.get(CONF_USERNAME, DEFAULT_USERNAME), | ||
| password=entry.data[CONF_PASSWORD], | ||
| port=entry.data.get(CONF_PORT, DEFAULT_PORT), | ||
| timeout=30, |
There was a problem hiding this comment.
should the default timeout be used here as well? can be done in new PR if so.
There was a problem hiding this comment.
We'll have a look at this, thanks!
There was a problem hiding this comment.
im going to approve here. you may see some additional followup requests as other devs become available to review. please try to keep future PRs concise and focused as the review queue does have a backlog and not everyone has availability for the medium to large reviews. You will have a better developer experience if the small bugfixes are done separately in the future.
|
Duly noted @ctalkington - we try to keep 'm as small and keep up with our own backlog (which, due to the merger for USB has increased). Thanks for your time! |
* Notifications extract from beta * Remove info loggings * Delete notification service * Only notifications for right smiles * Revert to correct logic * Catchup with dev (mostly with ourselves from #41201) * Remove debug logging * Naming improvement * Improve test quality as per codecov patch requirement * Revert to original condition (and appropriately test) * Fix delete_notification_service, bring tests fixtures up to 1.6.0 including notifications * Review comment (@bouwew) * Correct test value * Re-apply #40108 fix after rebase sidestep * Update tests/components/plugwise/test_init.py Co-authored-by: Chris Talkington <chris@talkingtontech.com> * Add needed state to imports * Remove separate gw unload code * Change entry_fail approach * Revert persistent notification part * Revert persistent notification part - lint * Update homeassistant/components/plugwise/binary_sensor.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/plugwise/binary_sensor.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Rework reuse of sensor in binary_sensor * Explicit state attribute keys * Remove tempfile * List of notifications per severity * Update homeassistant/components/plugwise/binary_sensor.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Chris Talkington <chris@talkingtontech.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
…t#41473) * Notifications extract from beta * Remove info loggings * Delete notification service * Only notifications for right smiles * Revert to correct logic * Catchup with dev (mostly with ourselves from home-assistant#41201) * Remove debug logging * Naming improvement * Improve test quality as per codecov patch requirement * Revert to original condition (and appropriately test) * Fix delete_notification_service, bring tests fixtures up to 1.6.0 including notifications * Review comment (@bouwew) * Correct test value * Re-apply home-assistant#40108 fix after rebase sidestep * Update tests/components/plugwise/test_init.py Co-authored-by: Chris Talkington <chris@talkingtontech.com> * Add needed state to imports * Remove separate gw unload code * Change entry_fail approach * Revert persistent notification part * Revert persistent notification part - lint * Update homeassistant/components/plugwise/binary_sensor.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update homeassistant/components/plugwise/binary_sensor.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Rework reuse of sensor in binary_sensor * Explicit state attribute keys * Remove tempfile * List of notifications per severity * Update homeassistant/components/plugwise/binary_sensor.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Chris Talkington <chris@talkingtontech.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Proposed change
Add support for Plugwise Stretch for switching devices (i.e. this makes using older circle/stealth plugs possible). Within restructuring for these plugs we also can close #38238. As per request link to our Changelog for the version bump for the final modifications for Stretch support. Additionally some minor corrections (sorting CONSTs and better usage of CONSTs) and additional fixtures for the stretch platform (and config_flow accordingly).
Type of change
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.To help with the load of incoming pull requests: