Repository navigation
Fix Gate Fan Lint Findings and Give CeilSense Per-Device Builds - #280
Conversation
- Add float suffixes to the gate fan's meter conversions and cast the display temperature to double for printf, clearing three -Wdouble-promotion findings that CI never saw because it does not compile production configs. - Remove the CeilSense vendor build_path, which put every CeilSense config in one build/ceilsense tree, so a bare upload could flash another config's firmware. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #280 +/- ##
========================================
Coverage 84.61% 84.61%
========================================
Files 3 3
Lines 624 624
========================================
Hits 528 528
Misses 96 96
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, and the affected configurations were verified in clean build trees.
No open issues 🎉
What changed in this PR
This pull request fixes production compile-lint warnings in the gate fan controller and prevents CeilSense devices from sharing a vendor-defined build directory.
Changes:
- Uses float literals for meter conversions and explicitly promotes the display temperature to
double. - Removes the shared CeilSense
build_pathso each device uses its own build directory. - Verifies the affected configurations with clean build trees.
| File | Description |
|---|---|
templates/smarthome-ceilsense.yaml |
Removes the shared vendor build path so CeilSense devices build independently. |
garage-gate-fan-controller.yaml |
Fixes three -Wdouble-promotion diagnostics in meter conversions and display formatting. |
Review effort: Lite
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
A clean compile of every production and test config, linted with
tools/compile-lint, turned up two problems that CI cannot see.garage-gate-fan-controller.yaml: three-Wdouble-promotionfindings, in the water and gas meter conversions and the display's temperatureprintf. CI compiles onlytest/, so this production-only code was never linted. The constants take anfsuffix and theprintfargument astatic_cast<double>(). The water conversion also moves from 264.2 to the exact 264.172 gallons per cubic meter, which raises the published total by about 0.01% and never lowers it, so Home Assistant'stotal_increasingsensor reads no reset.templates/smarthome-ceilsense.yaml: the vendor'sbase.yamlsetsbuild_path: build/ceilsense, so every CeilSense config shares one build tree. Compiling one overwrites another, and a serial upload flashes whicheverfirmware.factory.binwas built last. The template now removesbuild_path, so each device builds under its own name.Verified on
ptr727/esphome-nonroot:2026.10.1from clean build trees: the gate fan config lints with zero findings, andgarage-presence-sensor.yamlandtest/smarthome-ceilsense.yamlcompile under/cache/build/garage-presence-sensorand/cache/build/smarthome-ceilsense-test.The CI and lint gaps behind this, production configs not compiled and ESPHome
WARNINGlines not checked, are #281.Pre-existing findings, not filed:
archive/utility-pulse-counter.yaml:103divides by the same inexact 264.2,pre-existing. The archive is retired and neither deployed nor compiled.🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Build Behavior