pnbruckner / ha-life360

A Home Assistant integration for Life360.
32 stars 4 forks source link

Handle error 404 when Member removed from Circles #23

Closed pnbruckner closed 3 weeks ago

pnbruckner commented 4 weeks ago

If a Member is removed from all known Circles, and the corresponding tracker entity is still enabled, this will cause the server to return an error 404 "not found" while attempting to retrieve the Member's data. This will cause the online binary sensor to go off, and possibly right back on when the next Member's data is retrieved (who is still in a Circle.)

This PR prevents that error from causing the account to appear "off line", and will change the corresponding tracker to unknown with an appropriate reason attribute.

Fixes #22