Summary
- Gives the reusable
scd4x_stats.vpdsensor default Home Assistant/ESPHome metadata forkPa, two decimal places, and measurement state class. - Keeps the change component-only; no real device configs from the old stacked PRs are included.
Fixes #15.
Test Plan
git diff --check origin/main..HEADpython3 - <<'PY' ... ast.parse(Path('scd4x_stats/__init__.py').read_text()) ... PY./docker/esphome compile configs/test-atoms3u-sensors.yaml- Verified generated AtomS3U source includes VPD
state_class=measurement,accuracy_decimals=2, anduom:kPa.
Notes
- The VPD calculation and publish path are unchanged.
- The temporary local
configs/secrets.yamlcopy used for compile validation was removed before pushing.
## Summary
- Gives the reusable `scd4x_stats.vpd` sensor default Home Assistant/ESPHome metadata for `kPa`, two decimal places, and measurement state class.
- Keeps the change component-only; no real device configs from the old stacked PRs are included.
Fixes #15.
## Test Plan
- `git diff --check origin/main..HEAD`
- `python3 - <<'PY' ... ast.parse(Path('scd4x_stats/__init__.py').read_text()) ... PY`
- `./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 VPD calculation and publish path are unchanged.
- The temporary local `configs/secrets.yaml` copy used for compile validation was removed before pushing.