Repository navigation
Open
Description
There are 15 open PRs from bluetoothbot. This issue groups them so they can be reviewed in batches, and lists the two ordering dependencies between them.
Checked on 2026-10-25: all 15 merged onto main (22d6dc3) with no conflicts, and 90 tests pass on Python 3.12. Every GitHub Actions check (lint, commitlint, tests on 3.11/3.12/3.13) passes on each PR. pre-commit.ci - pr fails on every fork PR, including #144, which changes one CI yaml line. The Actions lint job runs the same hooks with --all-files and passes, so that failure isn't caused by the code.
Ordering dependencies
- feat: require Python 3.11 or later #152 before perf: add slots=True to value and device dataclasses #142. perf: add slots=True to value and device dataclasses #142 adds
dataclass(slots=True), which needs Python 3.10+.mainstill declarespython = "^3.9", so perf: add slots=True to value and device dataclasses #142 merged alone would break 3.9 installs. feat: require Python 3.11 or later #152 raises the floor to 3.11, which CI already uses as its minimum. Whether that counts asfeatorfeat!is your call. - chore: fix pre-commit.ci on Python 3.14; pass ruff 0.17 and mypy 2.x #153 before chore(pre-commit.ci): pre-commit autoupdate #131. The pre-commit autoupdate (chore(pre-commit.ci): pre-commit autoupdate #131) fails
lintbecause ruff 0.16+ turns on more default rules and the repo has no ruff config. chore: fix pre-commit.ci on Python 3.14; pass ruff 0.17 and mypy 2.x #153 contains the code fixes. Merge it, then re-run or rebase chore(pre-commit.ci): pre-commit autoupdate #131.
Batches
- Bug fixes, no API change: fix: normalize negative precision to sentinel in set_precision #136 (negative precision), fix: SensorUpdate leaked mutable state across updates; add API test coverage #137 (
SensorUpdateshared mutable state with later updates), docs: correct PM1 particulate size bound (1 μm, not 0.1 μm) #139 (PM1 docstring) - CI/tooling: ci: add Python 3.14 to test matrix #144 (Python 3.14 matrix, closes Python 3.14 is missing from ci #141), chore: fix pre-commit.ci on Python 3.14; pass ruff 0.17 and mypy 2.x #153
- Units string values aligned with HA: fix: use Greek mu (U+03BC) for micro units, matching Home Assistant #145 (micro prefix to U+03BC, matching HA ≥ 2025.9, closes Units: inconsistent micro codepoint (U+03BC vs U+00B5) breaks string equality #143), fix: align three Units strings with Home Assistant #151 (
dBA,ft³/min,BTU/(h⋅ft²), closes Units: 3 unit strings drifted from Home Assistant (dBa, ft³/m, BTU/(h×ft²)) #149). These change.value. HA looks units up by enum, so HA is unaffected, but third-party code that compares literal strings would see the change. - Additive, no behavior change: feat: add SensorLibrary entries for air-quality device classes #138 (air-quality
SensorLibraryentries), feat: export base description classes from package root #146 (export base description classes), feat: add weather/environmental sensor device classes #147, feat: add blood glucose, sound pressure, VOC parts device classes #148, feat: add remaining HA sensor and binary sensor device classes #150 (missing HA device classes), feat: add Units for reactive energy, energy distance, glucose, radon #154 (Units for the device classes in feat: add blood glucose, sound pressure, VOC parts device classes #148/feat: add remaining HA sensor and binary sensor device classes #150 that HA otherwise has no unit for; can merge in any order) - Python floor: feat: require Python 3.11 or later #152
No PR (needs a decision)
- Units StrEnum: 4 members are silent aliases due to duplicate string values #140: 4
Unitsmembers are silent aliases because their values are identical. Fixing it means renaming or removing members, which is breaking.
I won't open new PRs here until this backlog has been reviewed. Closing any of them is fine; they are independent unless noted above.
🤖 Created by Kōan
Metadata
Metadata
Assignees
Labels
No labels
Activity
bluetoothbot commentedon Oct 25, 2026
HA drift check, 2026-10-25
This compares home-assistant/core
dev(homeassistant/const.pyandcomponents/sensor/const.py) withmainplus every open PR branch merged together.SensorDeviceClassmembers are covered once feat: add weather/environmental sensor device classes #147, feat: add blood glucose, sound pressure, VOC parts device classes #148 and feat: add remaining HA sensor and binary sensor device classes #150 land. Nothing is missing.UnitOf*values exist in HA and appear nowhere in this repo, including the open PRs:mWMWGWTWmVAkVAmvarkvarJkJMJGJmWhGWhTWhcalkcalMcalGcalthm(therm was added upstream on 2026-09-16)μAμVkVMV, plusS/cmandmS/cmmPainH₂OatmCCFMCFm³/minm³/sL/hL/minL/sgal/hgal/mingal/dmL/scm²km²mm²in²ft²yd²mi²achanmimHzstg/m³Beaufortin/sm/minmm/sNothing is broken. A parser that needs one of these units today has no
Unitsmember to use for it.Proposed follow-up (Batch 5): one PR that adds these units, gated on #151 and #154 because they touch the same lines of
units.py. I'm not opening it yet, in line with the hold above. If you'd like it sooner, say so and I'll open it.