mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 08:07:45 +00:00
Cleanup swiss_public_transport error logging (#111741)
This commit is contained in:
parent
928458160e
commit
c0a7aacfa8
@ -41,13 +41,10 @@ async def async_setup_entry(
|
|||||||
f"Timeout while connecting for entry '{start} {destination}'"
|
f"Timeout while connecting for entry '{start} {destination}'"
|
||||||
) from e
|
) from e
|
||||||
except OpendataTransportError as 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(
|
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
|
) from e
|
||||||
|
|
||||||
coordinator = SwissPublicTransportDataUpdateCoordinator(hass, opendata)
|
coordinator = SwissPublicTransportDataUpdateCoordinator(hass, opendata)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user