Cleanup swiss_public_transport error logging (#111741)

This commit is contained in:
Cyrill Raccaud 2024-02-28 19:42:25 +01:00 committed by GitHub
parent 928458160e
commit c0a7aacfa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,13 +41,10 @@ async def async_setup_entry(
f"Timeout while connecting for entry '{start} {destination}'"
) from e
except OpendataTransportError as e:
_LOGGER.error(
"Setup failed for entry '%s %s', check at http://transport.opendata.ch/examples/stationboard.html if your station names are valid",
start,
destination,
)
raise ConfigEntryError(
f"Setup failed for entry '{start} {destination}' with invalid data"
f"Setup failed for entry '{start} {destination}' with invalid data, check "
"at http://transport.opendata.ch/examples/stationboard.html if your "
"station names are valid"
) from e
coordinator = SwissPublicTransportDataUpdateCoordinator(hass, opendata)