mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Raise ConfigEntryNotReady
when there is no _id
in the Tractive data (#118467)
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
This commit is contained in:
parent
98d905562e
commit
356374cdc3
@ -148,6 +148,13 @@ async def _generate_trackables(
|
||||
tracker.details(), tracker.hw_info(), tracker.pos_report()
|
||||
)
|
||||
|
||||
if not tracker_details.get("_id"):
|
||||
_LOGGER.info(
|
||||
"Tractive API returns incomplete data for tracker %s",
|
||||
trackable["device_id"],
|
||||
)
|
||||
raise ConfigEntryNotReady
|
||||
|
||||
return Trackables(tracker, trackable, tracker_details, hw_info, pos_report)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user