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

Fix: Midea heat pump outside temperature issue when below zero #22

Merged
merged 5 commits into from
May 27, 2024
Merged

Fix: Midea heat pump outside temperature issue when below zero #22

merged 5 commits into from
May 27, 2024

Conversation

erikgieseler
Copy link
Contributor

Fix: Midea heat pump outside temperature issue when below zero georgezhao2010/midea_ac_lan#427

Fix: Midea heat pump outside temperature issue when below zero #427
Co-authored-by: Simone Chemelli <simone.chemelli@gmail.com>
Copy link
Collaborator

@rokam rokam left a comment

Choose a reason for hiding this comment

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

LGTM. Although there is a linting error to be fixed.

@wuwentao
Copy link
Owner

@erikgieseler
you may need to fix the github action error, it show the solution as below:

  -        self.outdoor_temperature = (base_value - 256) if base_value > 127 else base_value
  +        self.outdoor_temperature = (
  +            (base_value - 256) if base_value > 127 else base_value
  +        )

@wuwentao
Copy link
Owner

we can accept the changes, and port it to midea-local.

@erikgieseler
Copy link
Contributor Author

The action errors are fixed

Copy link
Collaborator

@chemelli74 chemelli74 left a comment

Choose a reason for hiding this comment

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

LGTM.

Just a small question: is that valid only for "c3" devices or there is something similar for others ?

@erikgieseler
Copy link
Contributor Author

erikgieseler commented May 27, 2024

LGTM.

Just a small question: is that valid only for "c3" devices or there is something similar for others ?

Unfortunately, I can't answer that because I only have a C3 heat pump. Perhaps the same problem also exists with other devices where the exact same old code was used.

@chemelli74
Copy link
Collaborator

We need to rework the code and remove all those duplicates.
I'm nearly done with the typing, next job will be the clean-up.

@erikgieseler
Copy link
Contributor Author

We need to rework the code and remove all those duplicates. I'm nearly done with the typing, next job will be the clean-up.

I have done a search with the old code across all other devices.
There are no duplicates that use the same code.

@chemelli74 chemelli74 merged commit bbb590f into wuwentao:master May 27, 2024
4 checks passed
@erikgieseler erikgieseler deleted the patch-2 branch May 27, 2024 15:42
rokam added a commit to midea-lan/midea-local that referenced this pull request May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants