Pass the message as an exception argument in Tractive integration (#118534)

Pass the message as an exception argument

Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
This commit is contained in:
Maciej Bieniek 2024-05-31 09:11:52 +02:00 committed by GitHub
parent cb502263fd
commit cdcf091c9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -149,11 +149,9 @@ async def _generate_trackables(
) )
if not tracker_details.get("_id"): if not tracker_details.get("_id"):
_LOGGER.info( raise ConfigEntryNotReady(
"Tractive API returns incomplete data for tracker %s", f"Tractive API returns incomplete data for tracker {trackable['device_id']}",
trackable["device_id"],
) )
raise ConfigEntryNotReady
return Trackables(tracker, trackable, tracker_details, hw_info, pos_report) return Trackables(tracker, trackable, tracker_details, hw_info, pos_report)