-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Support HitachiAirToAirHeatPump (ovp:HLinkMainController) in Overkiz integration #102159
Support HitachiAirToAirHeatPump (ovp:HLinkMainController) in Overkiz integration #102159
Conversation
Hey there @iMicknl, @vlebourl, @tetienne, @nyroDev, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
434ca8e
to
9f3bb04
Compare
9f3bb04
to
48f8cec
Compare
2092508
to
a3578f7
Compare
a3578f7
to
241dddd
Compare
homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py
Outdated
Show resolved
Hide resolved
homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py
Outdated
Show resolved
Hide resolved
homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py
Outdated
Show resolved
Hide resolved
homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py
Outdated
Show resolved
Hide resolved
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Thanks for your comments @emontnemery I believe I have addressed them all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just one minor remark.
homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Has this been tested by someone that owns the device?
It was tested by a user a couple months ago. Only changes since are these style fixes and constants cleanup. I can ask them to test again. |
cc @Chris-NL |
homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py
Outdated
Show resolved
Hide resolved
homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py
Outdated
Show resolved
Hide resolved
homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py
Outdated
Show resolved
Hide resolved
Support OVP devices
Co-authored-by: Joost Lekkerkerker <[email protected]>
8fc9325
to
b6d94d4
Compare
…to_air_heat_pump_ovp.py Co-authored-by: Joost Lekkerkerker <[email protected]>
self._attr_supported_features |= ClimateEntityFeature.SWING_MODE | ||
|
||
if self._attr_device_info: | ||
self._attr_device_info["manufacturer"] = "Hitachi" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not good as it overrides the existing dictionary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if I fully understand. We set a default value in the entity.py, where we first check if the device has a specific vendor name, and otherwise fallback to the hub vendor (e.g. Atlantic or Somfy). For this device they don't provide the vendor name in the device information, and falling back to the hub vendor name doesn't make sense. Hence we overwrite the current value with 'Hitachi', which is the vendor of this specific device.
This pattern is used more broadly in Overkiz, so I will make more changes depending on the outcome :).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah jus checked the other code, looks like it's fine. I thought it was overriding a key in a global dictionary but it's generated in the constructor.
…integration (#102159) * Support OVP devices Support OVP devices * Fix coding style * Fix coding style and unnecessary constants * Move fanmodes inside class * Apply suggestions from code review Co-authored-by: Joost Lekkerkerker <[email protected]> * Remove duplicate widget * Update homeassistant/components/overkiz/climate_entities/hitachi_air_to_air_heat_pump_ovp.py Co-authored-by: Joost Lekkerkerker <[email protected]> * Format ruff * Fix mypy --------- Co-authored-by: Mick Vleeshouwer <[email protected]> Co-authored-by: Joost Lekkerkerker <[email protected]>
Proposed change
This adds support to Hitachi Air-To-Air Heat Pumps that use the OVP protocol on the Overkiz API. It follows the PR #95706 which adds support for the devices on the HLRRWIFI protocol. OVP protocol has enough differences with HLRRWIFI to be added as a separate class in order to make the code easier to maintain.
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: