PID_integration icon indicating copy to clipboard operation
PID_integration copied to clipboard

Integration freezes if there aren't enough departures in the next 24 hours

Open Sap1k opened this issue 3 months ago • 2 comments

Hi, the stop nearest to where I live doesn't see any service on weekends.

The expected behavior:

  • As there are less than x departures in the next 24 hours, the fields that cannot be populated get empty strings.
  • When the last bus on Friday leaves, the direction of the first "bus" is set to "Žádné odjezdy v příštích 24 hodinách" or something like that.

Current behavior:

  • The integration freezes when there are less than x departures in the next 24 hours. Reloading makes the entities disappear.

Could this please be looked into? The integration is amazing otherwise, but it's annoying to have a broken dashboard 2 days of the week 😅

Sap1k avatar Aug 29 '25 23:08 Sap1k

Thanks, I will have a look into it.

dvejsada avatar Aug 30 '25 06:08 dvejsada

I'd just like to add a small correction - the API returns departures in the next 48 hours, not 24.

Point still stands though, just any potential message should reflect this.

Sap1k avatar Aug 30 '25 13:08 Sap1k