v0.8.3 — Keep BMI concern entity available under 24 months
Korean infant/child reference data integration for Home Assistant.
Install via HACS → Custom repositories → `https://github.com/redchupa/kr_baby_kit\` (Category: Integration).
🛠️ Fixed
`binary_sensor._bmi_concern` no longer shows "unavailable" for children under 24 months.
KDCA's BMI percentile table starts at 24 months. For younger children there is no statistical percentile to compare, so the entity used to go to unavailable — but most parents reasonably read that as a misconfiguration on their end.
v0.8.3 keeps the entity available with:
- `state: off` (no concern flagged — BMI percentile is simply undefined at this age)
- `summary_ko` attribute: "만 24개월 미만 — BMI 백분위는 KDCA 기준상 만 2세부터 적용됩니다. 같은 자녀의 '신장별 몸무게 양극단 주의' binary_sensor 를 함께 확인하세요."
- `value` attribute: the raw BMI value (still computed from height + weight, just not percentile-ranked)
For a child under 24 months, the clinically correct alert is the `_weight_for_length_concern` binary sensor, which is defined for that age band.
What changed under the hood
- `_ConcernSensor.available` is now "available if a percentile OR a summary advisory is present" (previously "percentile present" only).
- `BMIConcernSensor._info` returns the advisory dict for children under 24 months instead of an empty dict.
- Head circumference and weight-for-length concern entities are unaffected.
Upgrade notes
- `unique_id`, sensor values, and on-disk records all unchanged.
- Any automation that triggered on `binary_sensor._bmi_concern` state change still works exactly as before.
Full CHANGELOG: CHANGELOG.md