1
0
Fork
You've already forked esphome-components
0

fix: clean up Atlas EC labels and VPD precision #17

Closed
stackdrift wants to merge 2 commits from fix/atlas-ec-labels-vpd-precision into feat/edge-mqtt-to-broker
pull from: fix/atlas-ec-labels-vpd-precision
merge into: stackdrift:feat/edge-mqtt-to-broker
stackdrift:main
stackdrift:chore/retire-grow-device-configs
stackdrift:fix/scd4x-vpd-metadata
stackdrift:feat/edge-mqtt-to-broker

Summary

  • Replaces the Atlas Hydro EC calibration display-name slashes with Unicode fraction slashes so ESPHome 202670 will not turn the current warning into a hard config error.
  • Gives the reusable scd4x_stats.vpd sensor two-decimal kPa measurement metadata so AtomS3U VPD publishes/displays useful fractional values.

This PR is stacked on #13 / feat/edge-mqtt-to-broker because the AtomS3U VPD fix builds on the telemetry publishing work from that branch.

Fixes #14.
Fixes #15.

Test Plan

  • git diff --check origin/feat/edge-mqtt-to-broker..HEAD
  • rg -n "μS/cm" configs/atlas-hydro-kit.yaml || true
  • python3 - <<'PY' ... ast.parse(Path('scd4x_stats/__init__.py').read_text()) ... PY
  • ./docker/esphome compile configs/atlas-hydro-kit.yaml
  • ./docker/esphome compile configs/test-atoms3u-sensors.yaml
  • Verified generated AtomS3U source includes VPD state_class=measurement, accuracy_decimals=2, and uom:kPa.

Notes

  • The Atlas MQTT _ui/config object IDs are unchanged.
  • The VPD C++ calculation/publishing path is unchanged; only schema metadata defaults changed.
  • No flashing or OTA was performed.
## Summary - Replaces the Atlas Hydro EC calibration display-name slashes with Unicode fraction slashes so ESPHome 202670 will not turn the current warning into a hard config error. - Gives the reusable `scd4x_stats.vpd` sensor two-decimal `kPa` measurement metadata so AtomS3U VPD publishes/displays useful fractional values. This PR is stacked on #13 / `feat/edge-mqtt-to-broker` because the AtomS3U VPD fix builds on the telemetry publishing work from that branch. Fixes #14. Fixes #15. ## Test Plan - `git diff --check origin/feat/edge-mqtt-to-broker..HEAD` - `rg -n "μS/cm" configs/atlas-hydro-kit.yaml || true` - `python3 - <<'PY' ... ast.parse(Path('scd4x_stats/__init__.py').read_text()) ... PY` - `./docker/esphome compile configs/atlas-hydro-kit.yaml` - `./docker/esphome compile configs/test-atoms3u-sensors.yaml` - Verified generated AtomS3U source includes VPD `state_class=measurement`, `accuracy_decimals=2`, and `uom:kPa`. ## Notes - The Atlas MQTT `_ui/config` object IDs are unchanged. - The VPD C++ calculation/publishing path is unchanged; only schema metadata defaults changed. - No flashing or OTA was performed.
Author
Owner
Copy link

Superseded by clean component-only PR #18 for the reusable scd4x_stats VPD metadata and by stackdrift/grow-fleet for real device config state. This stacked PR should not land.

Superseded by clean component-only PR #18 for the reusable scd4x_stats VPD metadata and by stackdrift/grow-fleet for real device config state. This stacked PR should not land.

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
stackdrift/esphome-components!17
Reference in a new issue
stackdrift/esphome-components
No description provided.
Delete branch "fix/atlas-ec-labels-vpd-precision"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?