Skip to content

Add support for Stretch product to Plugwise integration#40108

Merged
ctalkington merged 18 commits intohome-assistant:devfrom
plugwise:plugwise-stretch
Nov 8, 2020
Merged

Add support for Stretch product to Plugwise integration#40108
ctalkington merged 18 commits intohome-assistant:devfrom
plugwise:plugwise-stretch

Conversation

@CoMPaTech
Copy link
Copy Markdown
Member

@CoMPaTech CoMPaTech commented Sep 15, 2020

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

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the [development checklist][dev-checklist]
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

  • Documentation added/updated for [www.home-assistant.io][docs-repository]

If the code communicates with devices, web services, or third-party tools:

  • The [manifest file][manifest-docs] has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

To help with the load of incoming pull requests:

  • I have reviewed one other [open pull requests][prs] in this repository in the past week. (PR 39963)

@probot-home-assistant
Copy link
Copy Markdown

Hey there @bouwew, mind taking a look at this pull request as its been labeled with an integration (plugwise) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@CoMPaTech
Copy link
Copy Markdown
Member Author

Catch-up with dev wrt #40543

Copy link
Copy Markdown
Contributor

@bouwew bouwew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

@CoMPaTech CoMPaTech force-pushed the plugwise-stretch branch 2 times, most recently from 86f2aac to 81d8909 Compare October 8, 2020 06:34
@CoMPaTech
Copy link
Copy Markdown
Member Author

Catchup with dev (mostly with ourselves from #41201) complete.

Copy link
Copy Markdown
Contributor

@Bre77 Bre77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@CoMPaTech
Copy link
Copy Markdown
Member Author

Catched up with dev, should be fine for final review and eventual merge!

@CoMPaTech
Copy link
Copy Markdown
Member Author

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).

@CoMPaTech
Copy link
Copy Markdown
Member Author

CoMPaTech commented Nov 1, 2020

Also fixes #42684

@CoMPaTech
Copy link
Copy Markdown
Member Author

Also fixes #42725

@CoMPaTech
Copy link
Copy Markdown
Member Author

Hi @ctalkington - I think we addressed the requested changes, could you recheck?

@CoMPaTech CoMPaTech requested a review from ctalkington November 8, 2020 13:20
username=entry.data.get(CONF_USERNAME, DEFAULT_USERNAME),
password=entry.data[CONF_PASSWORD],
port=entry.data.get(CONF_PORT, DEFAULT_PORT),
timeout=30,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the default timeout be used here as well? can be done in new PR if so.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll have a look at this, thanks!

Copy link
Copy Markdown
Contributor

@ctalkington ctalkington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ctalkington ctalkington merged commit 877bfcb into home-assistant:dev Nov 8, 2020
@CoMPaTech
Copy link
Copy Markdown
Member Author

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!

CoMPaTech added a commit to plugwise/home-assistant.core that referenced this pull request Nov 8, 2020
ctalkington added a commit that referenced this pull request Nov 17, 2020
* 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>
rccoleman pushed a commit to rccoleman/core that referenced this pull request Dec 4, 2020
…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>
@CoMPaTech CoMPaTech deleted the plugwise-stretch branch March 13, 2022 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

no % icon for Plugwise auxiliary modulation level

5 participants