2026.5.3
🙏 Thank you to @Eskander for contributing the
nearest_weightprofile method — [#379].
🆕 New features
Nearest-weight profile method
- New
nearest_weightprofile method — automatically assigns a measurement to the
user whose current weight is closest to the sensor value, following the approach
proposed in #11 (comment).
Closes #373. - Configurable tolerance (
nearest_tolerance, default ±5 kg) — measurement is
rejected if no user's current weight falls within the tolerance window. initial_weightfield — seeds the user's current weight on first setup so the
filter is operational immediately without waiting for a prior accepted measurement.- Tie-breaking: when two users are equidistant, the match is awarded alphabetically.
⚙️ Changes
New constants (const.py)
PROFILE_METHOD_NEARESTCONF_INITIAL_WEIGHTCONF_NEAREST_TOLERANCE
🔧 Bug fixes
- Fixed
async_step_profileexceeding pylint branch limit — extracted_validate_weight,_validate_nearestand_validate_notifyas module-level helpers.