mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Ignore trackable
without details
in Tractive integration (#109814)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
This commit is contained in:
parent
db16b739a6
commit
a6f0b6a005
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user