Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise ConfigEntryNotReady when there is no _id in the Tractive data #118467

Merged
merged 1 commit into from
May 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions homeassistant/components/tractive/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
MartinHjelmare marked this conversation as resolved.
Show resolved Hide resolved
trackable["device_id"],
)
raise ConfigEntryNotReady

return Trackables(tracker, trackable, tracker_details, hw_info, pos_report)


Expand Down