Skip to content

feat: add blood glucose, sound pressure, VOC parts device classes - #148

Draft
bluetoothbot wants to merge 2 commits into
Bluetooth-Devices:mainfrom
bluetoothbot:koan/sensor-device-classes-glucose-voc-sound
Draft

feat: add blood glucose, sound pressure, VOC parts device classes#148
bluetoothbot wants to merge 2 commits into
Bluetooth-Devices:mainfrom
bluetoothbot:koan/sensor-device-classes-glucose-voc-sound

Conversation

@bluetoothbot

@bluetoothbot bluetoothbot commented Jun 22, 2026

Copy link
Copy Markdown

What: Add three missing Home Assistant SensorDeviceClass members — BLOOD_GLUCOSE_CONCENTRATION, SOUND_PRESSURE, and VOLATILE_ORGANIC_COMPOUNDS_PARTS.

Why: This library mirrors HA's device classes (its stated feature work). These three are common BLE sensor readings — glucose meters, noise/sound-pressure sensors, and ppb/ppm-scale VOC — that had no corresponding enum member, so consumers couldn't tag them with the canonical HA string.

How: Members inserted in their alphabetical regions with HA-exact string values. Picked conflict-free locations away from the device-class lines touched by open PRs #139 (PM1) and #147 (weather classes), so this merges independently.

Testing: New tests/test_sensor_device_class_health_air.py pins each string value (the HA interop contract). Full suite: 11 passed under 3.12, ruff clean.


Quality Report

Changes: 2 files changed, 31 insertions(+)

Code scan: clean

Tests: passed (11 passed)

Branch hygiene: clean

Generated by Kōan

bluetoothbot and others added 2 commits June 22, 2026 23:54
Add three Home Assistant SensorDeviceClass members that were missing from
the mirror: BLOOD_GLUCOSE_CONCENTRATION, SOUND_PRESSURE, and
VOLATILE_ORGANIC_COMPOUNDS_PARTS. All three are common BLE sensor readings
(glucose meters, noise sensors, ppb-scale VOC). Values match HA exactly.

Pin the interop string values with a regression test.
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.40%. Comparing base (31bd826) to head (a748dd6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #148      +/-   ##
==========================================
+ Coverage   94.37%   94.40%   +0.03%     
==========================================
  Files          12       12              
  Lines         480      483       +3     
  Branches        5        5              
==========================================
+ Hits          453      456       +3     
  Misses         26       26              
  Partials        1        1              

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant