Skip to content

Commit

Permalink
Pass the message as an exception argument in Tractive integration (ho…
Browse files Browse the repository at this point in the history
…me-assistant#118534)

Pass the message as an exception argument

Co-authored-by: Maciej Bieniek <[email protected]>
  • Loading branch information
bieniu and bieniu authored May 31, 2024
1 parent cb50226 commit cdcf091
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions homeassistant/components/tractive/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,9 @@ async def _generate_trackables(
)

if not tracker_details.get("_id"):
_LOGGER.info(
"Tractive API returns incomplete data for tracker %s",
trackable["device_id"],
raise ConfigEntryNotReady(
f"Tractive API returns incomplete data for tracker {trackable['device_id']}",
)
raise ConfigEntryNotReady

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

Expand Down

0 comments on commit cdcf091

Please sign in to comment.