8000 Add wemo options enable_subscription & enable_long_press by esev · Pull Request #56972 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add wemo options enable_subscription & enable_long_press #56972

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

Merged
merged 7 commits into from
Jun 27, 2023

Conversation

esev
Copy link
Contributor
@esev esev commented Oct 3, 2021

Proposed change

Adding ConfigFlow options for Wemo to control subscriptions and the long-press feature.

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
  • 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:

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

  • The manifest file 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.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

To help with the load of incoming pull requests:

@esev
Copy link
Contributor Author
esev commented Dec 24, 2021

I've switched this PR from a feature request to a bug fix. Allowing users to disable push subscriptions fixes #62224.

@frenck frenck added the smash Indicator this PR is close to finish for merging or closing label Jan 19, 2022
@frenck frenck removed the smash Indicator this PR is close to finish for merging or closing label Mar 29, 2022
@github-actions
Copy link
github-actions bot commented Aug 1, 2022

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days.
Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 1, 2022
8000
@maxwellemerson
Copy link

Also following closely. Randomly having wemos fall off of HA and was close to abandoning my wemos for zwave tonight. Would rather see if there's a potential fix as wemos are much more affortable.

@silverl
Copy link
silverl commented Dec 7, 2022

Hi, @frenck. Is there more the contributor needs to do to get this in shape to merge? Thank you.

@esev
Copy link
Contributor Author
esev commented Dec 7, 2022

Thanks @silverl for asking. I've seen the devs do not like to be pinged, so I've just been waiting (on this and other PRs). I'm not sure what more there is to do. This code has been running fine on my HA instance for over a year. But maybe this PR doesn't fit well with the HA config model? I'm happy to change it or re-implement it if given some guidance.

@silverl
Copy link
silverl commented Dec 7, 2022

Hi, @esev. Is it hard to replace the native WeMo integration with the modified copy? I'm game to try, but not sure where to start.

@esev
Copy link
Contributor Author
esev commented Dec 7, 2022

I think it is possible to take a copy of this code and add it to the custom_components directory. But I haven't done that before. Searching for custom_components may bring up some solutions.

I have a different process where I patch this (and other) code into the monthly official Docker images and produce a new Docker image that contains my code. That makes rollbacks easy/safe for me should I need to go back to a prior release. That's not as easy of a process as I believe custom_components may be.

@frenck frenck added the smash Indicator this PR is close to finish for merging or closing label Dec 21, 2022
@silverl
Copy link
silverl commented Apr 6, 2023

Anything left to do here? It looks like someone approved the changes...

Copy link
Member
@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

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

Code looks good to me.
I do agree with the fact that its cumbersome to ask the user for these kind of options but at the same time understand its hard to detect this properly and by having these options you at least have a solution for users affected by this.

Do note that options like this make the code more complicated and thus harder to maintain in the long run so if you ever find a way to solve it without this, fix it in a future PR ;-)

BTW: The issue sounds to me like device specific (malfunctioning device) or maybe even network related.

@marcelveldt marcelveldt marked this pull request as draft June 7, 2023 11:01
@marcelveldt
Copy link
Member

@esev sorry for the delay, we're swamped with PR's and so hard to catch up with reviews.

Are you ready for a final review so we can get this merged ? In that case please rebase the PR one more time so its up to date with the dev branch again.

For now, I've marked this PR as draft, awaiting your response.
Once you're ready, click the Ready for review button above.

Thanks! 👍

Learn more about our pull request process.

@frenck frenck removed the smash Indicator this PR is close to finish for merging or closing label Jun 7, 2023
@esev esev force-pushed the wemo_subscribe_option branch from 8a03427 to e5b2d38 Compare June 8, 2023 15:42
@esev
Copy link
Contributor Author
esev commented Jun 12, 2023

Many thanks for the review! It's much appreciated.

I rebased and fixed two issues. It should be good for a final review now.

@esev esev marked this pull request as ready for review June 12, 2023 16:15
@esev esev force-pushed the wemo_subscribe_option branch from 74340da to 6493772 Compare June 15, 2023 23:56
@frenck frenck added the smash Indicator this PR is close to finish for merging or closing label Jun 21, 2023
Copy link
Member
@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot locked and limited conversation to collaborators Jun 29, 2023
@esev esev deleted the wemo_subscribe_option branch July 26, 2023 16:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wemo switches unavailable in HASS but still controllable by mobile Wemo app
9 participants
0