Xbox screen time is back, a sign-in race is fixed, and failing services now report a proper error. Thanks to @erasmus83 for the two pull requests.
Fixed
- Xbox screen time stayed at 0 (#55, by @erasmus83). On some accounts Microsoft's mobile service has reported 0 for Xbox play since late August. The integration now also reads the Xbox activity report from the Family Safety web site and uses it when it is higher. The report is fetched at most every 5 minutes per child and backs off when Microsoft is slow; accounts without an Xbox are detected and left alone, without touching the sign-in session.
- A successful sign-in could still end in "Invalid flow specified" (#57, by @erasmus83). The last sign-in step could run twice at the same time, and the second run threw away a sign-in that was about to succeed. Both now wait for the same result.
- Services failed with an HTTP 500 instead of a clear error (#54). Any failing
microsoft_family_safetyservice now reports a regular Home Assistant error, socontinue_on_errorworks in automations. - German translation error in the manual sign-in step (#58).