Skip to content

v1.2.7-rc4 Bedtime schedule parsing fix (#113)

Pre-release
Pre-release

Choose a tag to compare

@noiwid noiwid released this 09 Jun 11:05

This pre-release fixes the bedtime schedule issue reported in #113.

What was wrong: the bedtime and school time schedules were never being parsed from the Family Link API response, so the integration always fell back to a hardcoded 21:30 to 07:00 window. The previous fix (rc3) corrected the field indices, but that code lived inside a loop that never actually ran because the parser was looking one level too deep in the response structure.
Every fetch silently came back with zero schedules.

What changed: the parser now reads the schedule list from the correct location and splits it by type (bedtime vs school time).
The bedtime override now uses your real configured hours for the current day instead of the default. School time Schedule windows, which the old code looked for in the wrong array entirely, are now recovered as well.

This was confirmed against a live API response, so the fix is grounded in real data rather than guesswork.

Please install this pre-release and let me know whether your bedtime now reflects your actual Family Link schedule. Once it is validated, I will promote it to a stable release.