Skip to content

Commit

Permalink
Change error handling to allow the sensor to remain alive despite nay…
Browse files Browse the repository at this point in the history
… error in RT
  • Loading branch information
vingerha committed Feb 4, 2025
1 parent a2719d2 commit 5d5fcfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/gtfs2/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async def _async_update_data(self) -> dict[str, str]:
self._data["alert"] = self._get_rt_alerts
except Exception as ex: # pylint: disable=broad-except
_LOGGER.error("Error getting gtfs realtime data, for origin: %s with error: %s", data["origin"], ex)
raise UpdateFailed(f"Error in getting start/end stop data: {ex}")
return self._data
else:
_LOGGER.debug("GTFS RT: RealTime = false, selected in entity options")
else:
Expand Down

0 comments on commit 5d5fcfc

Please sign in to comment.