Ignore trackable without details in Tractive integration (#109814)

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
This commit is contained in:
Maciej Bieniek 2024-02-06 22:36:12 +01:00 committed by GitHub
parent db16b739a6
commit a6f0b6a005
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,6 +129,13 @@ async def _generate_trackables(
if not trackable["device_id"]:
return None
if "details" not in trackable:
_LOGGER.info(
"Tracker %s has no details and will be skipped. This happens for shared trackers",
trackable["device_id"],
)
return None
tracker = client.tracker(trackable["device_id"])
tracker_details, hw_info, pos_report = await asyncio.gather(