Skip to content
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

Add breeze switch to Renson integration #101641

Merged
merged 4 commits into from
Feb 16, 2024
Merged

Conversation

jimmyd-be
Copy link
Contributor

@jimmyd-be jimmyd-be commented Oct 8, 2023

Breaking change

Proposed change

Added breeze switch to manually switch to breeze mode of the ventilcation unit.

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)
  • Deprecation (breaking change to happen in the future)
  • 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
  • I have followed the perfect PR recommendations
  • 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.

To help with the load of incoming pull requests:

homeassistant/components/renson/sensor.py Outdated Show resolved Hide resolved
homeassistant/components/renson/sensor.py Outdated Show resolved Hide resolved
homeassistant/components/renson/switch.py Show resolved Hide resolved
homeassistant/components/renson/switch.py Outdated Show resolved Hide resolved
homeassistant/components/renson/switch.py Outdated Show resolved Hide resolved
homeassistant/components/renson/switch.py Outdated Show resolved Hide resolved
@home-assistant
Copy link

home-assistant bot commented Oct 8, 2023

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant bot marked this pull request as draft October 8, 2023 09:11
@jimmyd-be jimmyd-be marked this pull request as ready for review October 8, 2023 09:50
@home-assistant home-assistant bot requested a review from joostlek October 8, 2023 09:50
@frenck frenck marked this pull request as draft October 8, 2023 11:25
@jimmyd-be jimmyd-be changed the title Add switch to Renson integration Add breeze fan to Renson integration Oct 14, 2023
@jimmyd-be jimmyd-be marked this pull request as ready for review October 14, 2023 07:33
@home-assistant home-assistant bot requested a review from joostlek October 14, 2023 07:33
@emontnemery
Copy link
Contributor

emontnemery commented Jan 25, 2024

@jimmyd-be Please try to better explain what this PR does. Is it in reality a single renson device, which you want to model as two fan entities? If that's the case, why is that?

@krmarien
Copy link
Contributor

I added on the original version of this component (when it was not yet home-assistant/core) the breeze feature with a switch. https://github.com/krmarien/Home-Assistant-Sensor-Renson-Ventilation/tree/breeze

To me that makes more sense as this is still one physical device (fan), it will just toggle some valves if I'm right.

@emontnemery emontnemery marked this pull request as draft February 15, 2024 11:36
@emontnemery
Copy link
Contributor

emontnemery commented Feb 15, 2024

I'm marking this PR as draft since there are open questions about the implementation.
@jimmyd-be Please reply to the questions, then click the "Ready for review" button 👍

@jimmyd-be
Copy link
Contributor Author

This thread contains the most info #101641 (comment)

@jimmyd-be
Copy link
Contributor Author

I added on the original version of this component (when it was not yet home-assistant/core) the breeze feature with a switch. https://github.com/krmarien/Home-Assistant-Sensor-Renson-Ventilation/tree/breeze

To me that makes more sense as this is still one physical device (fan), it will just toggle some valves if I'm right.

I first used your implementation but after first review it was not OK for the comunity. And changed after that to the current implementation.

@jimmyd-be
Copy link
Contributor Author

@jimmyd-be Please try to better explain what this PR does. Is it in reality a single renson device, which you want to model as two fan entities? If that's the case, why is that?

It is a single device. And the device can push air from outside to inside and visa versa. The breeze function is for pushing outside air into the home for cooling. The normal fan is for filtering the air and with a temperature value to retain the temperature inside the house.

@jimmyd-be jimmyd-be marked this pull request as ready for review February 15, 2024 12:03
@emontnemery
Copy link
Contributor

sorry @jimmyd-be, I didn't realize the recommendation to model the breeze mode as an additional fan came from review comments.

@jimmyd-be
Copy link
Contributor Author

sorry @jimmyd-be, I didn't realize the recommendation to model the breeze mode as an additional fan came from review comments.

No problem, what do I need to change now? Keep this implementation or revert back to the switch and fan implementation?

@emontnemery
Copy link
Contributor

@jimmyd-be I'll check with @joostlek and a few others.

@joostlek
Copy link
Member

Just had a quick chat with Erik, and I want to apologise for the wrong recommendation. Back then I didn't know the things I know today.

I think having 1 fan entity like we already had and then have a switch or select to switch the mode would be the best.

@emontnemery
Copy link
Contributor

@jimmyd-be please update the title and the description of the PR to match the implementation

@jimmyd-be jimmyd-be changed the title Add breeze fan to Renson integration Add breeze switch to Renson integration Feb 16, 2024
@jimmyd-be
Copy link
Contributor Author

@jimmyd-be please update the title and the description of the PR to match the implementation

Update the PR title and description. Reverted the code back to the previous commit.

Copy link
Contributor

@emontnemery emontnemery 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, just one question.

homeassistant/components/renson/sensor.py Show resolved Hide resolved
Copy link
Contributor

@emontnemery emontnemery left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @jimmyd-be 👍

@emontnemery emontnemery merged commit 6f74ea9 into home-assistant:dev Feb 16, 2024
23 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 17, 2024
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.

4 participants