home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.03k stars 28.27k forks source link

Fix active state mapping in wolflink #116659

Closed mtielen closed 2 weeks ago

mtielen commented 2 weeks ago

Breaking change

Proposed change

Fixes a typo which prevents the active state from being displayed.

Type of change

Additional information

Checklist

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

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

To help with the load of incoming pull requests:

home-assistant[bot] commented 2 weeks ago

Hey there @adamkrol93, mind taking a look at this pull request as it has been labeled with an integration (wolflink) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `wolflink` can trigger bot actions by commenting: - `@home-assistant close` Closes the pull request. - `@home-assistant rename Awesome new title` Renames the pull request. - `@home-assistant reopen` Reopen the pull request. - `@home-assistant unassign wolflink` Removes the current integration label and assignees on the pull request, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the pull request. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the pull request.
davet2001 commented 2 weeks ago

Please can you give some reasoning for the poll interval change you added after review?

mtielen commented 2 weeks ago

Please can you give some reasoning for the poll interval change you added after review?

Hi @davet2001, as this merge request was still open I thought it was more efficient to combine it. Sorry it's just my second PR if this should not have been done. I just restored the value to it's orginal from the orginal code as the API even supports every 10 seconds as the website is doing. Let me know if I need to retrigger something.

davet2001 commented 2 weeks ago

Hi @mtielen thanks for contributing!

It's usually best to put things in separate PRs unless they need to be linked.

For example I can review and merge the PR relating to the typo easily. But if you are shortening a poll interval, then the reviewer needs to check that you aren't hitting a rate limit somewhere, unexpectedly affecting something else, and probably do a bit of digging to work out why it was set to 90 originally, etc etc.

But since there was no mention of it in the PR description, my first check was to make sure it was intentional!

Please revert the poll interval change and open that in a new PR if wanted.

mtielen commented 2 weeks ago

Hi @mtielen thanks for contributing!

It's usually best to put things in separate PRs unless they need to be linked.

For example I can review and merge the PR relating to the typo easily. But if you are shortening a poll interval, then the reviewer needs to check that you aren't hitting a rate limit somewhere, unexpectedly affecting something else, and probably do a bit of digging to work out why it was set to 90 originally, etc etc.

But since there was no mention of it in the PR description, my first check was to make sure it was intentional!

Please revert the poll interval change and open that in a new PR if wanted.

Hi @davet2001, Thanks for helping me here. I'm sorry for the extra work. I reverted the commit and will open a new PR for reverting the poll interval to it's original value.

davet2001 commented 2 weeks ago

Looks good, thanks @mtielen!

mtielen commented 2 weeks ago

Looks good, thanks @mtielen!

Thanks @davet2001 for your help