Skip to content

v0.8.9 — fix HA event-loop blocking-IO warnings

Latest

Choose a tag to compare

@redchupa redchupa released this 14 May 02:59

Fixed

  • Blocking-IO warnings on setup. Home Assistant 2024+ flags synchronous file reads inside the event loop. The coordinator was loading four bundled JSON tables (growth_chart_kr.json, nip_schedule.json, health_checkup_schedule.json, care_tuition_kr.json) with plain open() calls in __init__ and on every refresh, producing four Detected blocking call to open warnings per child entry.

    Now all four files are pre-loaded once via hass.async_add_executor_job in async_setup_entry and handed to the coordinator as plain dicts, so update cycles stay pure-CPU. The sync load_* / from_default helpers remain for tests.

No schema, entity, or behavior changes — only the I/O path moved.

Upgrade

HACS → 통합 → kr_baby_kit → 재다운로드, 그리고 Home Assistant 재시작.