8000 Remove duplicate co2 and pressure constants by mgiacomelli · Pull Request #8583 · esphome/esphome · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove duplicate co2 and pressure constants #8583

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

Merged
merged 4 commits into from
Apr 17, 2025

Conversation

mgiacomelli
Copy link
Contributor
@mgiacomelli mgiacomelli commented Apr 17, 2025

Currently various CO2 and pressure sensors define several identical constants. This PR moves them to const.py.

This is needed for #8575 to apply cleanly.

Checklist:

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

@probot-esphome
Copy link

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

@probot-esphome
Copy link

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

@codecov-commenter
Copy link
codecov-commenter commented Apr 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.49%. Comparing base (4d8b5ed) to head (5af2286).
Report is 2351 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #8583      +/-   ##
==========================================
+ Coverage   53.70%   56.49%   +2.78%     
==========================================
  Files          50       50              
  Lines        9408     9888     +480     
  Branches     1654     1337     -317     
==========================================
+ Hits         5053     5586     +533     
+ Misses       4056     3953     -103     
- Partials      299      349      +50     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jesserockz jesserockz merged commit 0c3daab into esphome:dev Apr 17, 2025
26 checks passed
mgiacomelli added a commit to mgiacomelli/esphome that referenced this pull request Apr 20, 2025
@jesserockz jesserockz mentioned this pull request May 13, 2025
@jesserockz jesserockz mentioned this pull request May 21, 2025
sa-crespo pushed a commit to sa-crespo/esphome that referenced this pull request May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0