Tado fix water heater#113464
Conversation
|
Hey there @chiefdragon, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
joostlek
left a comment
There was a problem hiding this comment.
Why do we remove all the typing? What's the actual change?
| tado, | ||
| zone_name, | ||
| zone_id, | ||
| supports_temperature_control, | ||
| min_temp, | ||
| max_temp, |
| self._max_temperature = max_temp | ||
|
|
||
| self._target_temp: float | None = None | ||
| self._target_temp = None |
| self._current_tado_hvac_mode = CONST_MODE_SMART_SCHEDULE | ||
| self._overlay_mode = CONST_MODE_SMART_SCHEDULE | ||
| self._tado_zone_data: PyTado.TadoZone = {} | ||
| self._tado_zone_data = None |
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
A fix that reverse a running issue users experience due to the added typing. The min and max temperature contain bad defaults. |
|
Thanks for looking at this erwindouna. I can help test also if needed. |
|
was this included in 2024.3.1? I installed the update, but am still experiencing this issue |
This is a new fix to address the issue. |
|
The typing is only checked by the static analyzer and has no impact on runtime. Therefore only the three functional changes introduced in #107678 can cause the issue. If you are fine I would apply the following patch on this PR, which adds the typing back and only reverts the functional changes and the typing on those three variables/arguments To apply the patch run |
Breaking change
Proposed change
Reverts the water heater typing (introduced in #107678), whereas this caused issues in running installations. A PR to properly type it will follow.
Type of change
Additional information
Checklist
ruff format 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: