8000
Skip to content

[climate] Accept °K as intended - #8134

Merged
jesserockz merged 1 commit into
esphome:devfrom
oliv3r:kelvin
Jan 29, 2025
Merged

[climate] Accept °K as intended#8134
jesserockz merged 1 commit into
esphome:devfrom
oliv3r:kelvin

Conversation

@oliv3r
@oliv3r oliv3r commented Jan 24, 2025
Copy link
Copy Markdown
Contributor

What does this implement/fix?

There seems to be a copy/paste typo with visual temperature support. This probably slipped through as hardly anyone is using Kelvin, and while technically there is no such thing as °K, we do want to have correct code.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code quality improvements to existing code or addition of tests
  • Other

Test Environment

  • ESP32
  • ESP32 IDF
  • ESP8266
  • RP2040
  • BK72xx
  • RTL87xx

Checklist:

  • The code change is tested and works locally.
  • Tests have been added to verify that the new code works (under tests/ folder).

I currently don't have the means to check this myself.

There seems to be a copy/paste typo with visual temperature support.
This probably slipped through as hardly anyone is using Kelvin, and
while technically there is no such thing as °K, we do want to have
correct code.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
@oliv3r
oliv3r requested a review from a team as a code owner January 24, 2025 12:08
@probot-esphome
Copy link
Copy Markdown

Hey there @esphome/core, mind taking a look at this pull request as it has been labeled with an integration (climate) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@codecov-commenter
codecov-commenter commented Jan 24, 2025
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.87%. Comparing base (4d8b5ed) to head (a933cfe).
Report is 1932 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #8134      +/-   ##
==========================================
+ Coverage   53.70%   53.87%   +0.16%     
==========================================
  Files          50       50              
  Lines        9408     9834     +426     
  Branches     1654     1354     -300     
==========================================
+ Hits         5053     5298     +245     
- Misses       4056     4215     +159     
- Partials      299      321      +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@voed
voed commented Jan 29, 2025
Copy link
Copy Markdown
Contributor

Maybe just make it (°?\\s?(C|K|F)) instead?

@jesserockz
jesserockz merged commit ba3e5e8 into esphome:dev Jan 29, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 31, 2025
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.

6 participants

0