Ignore failing gas stations in Tankerkoening (#112125)

pull/112516/head
Michael 2024-03-03 18:29:02 +01:00 committed by Paulus Schoutsen
parent 2cdc8d5f69
commit 62474967c9
1 changed files with 4 additions and 1 deletions

View File

@ -62,8 +62,11 @@ class TankerkoenigDataUpdateCoordinator(DataUpdateCoordinator):
station = await self._tankerkoenig.station_details(station_id)
except TankerkoenigInvalidKeyError as err:
raise ConfigEntryAuthFailed(err) from err
except (TankerkoenigError, TankerkoenigConnectionError) as err:
except TankerkoenigConnectionError as err:
raise ConfigEntryNotReady(err) from err
except TankerkoenigError as err:
_LOGGER.error("Error when adding station %s %s", station_id, err)
continue
self.stations[station_id] = station