Skip to content

v0.1.9 — National Rail: fix empty departure board (OpenLDBWS parsing)

Choose a tag to compare

@NerdySoftPaw NerdySoftPaw released this 02 Jul 17:08
f894b32

Fixes

  • National Rail (UK): departures never parsed — every station returned an empty board ("Invalid or empty API response" in Home Assistant) regardless of the API key. Real OpenLDBWS responses use namespace prefixes containing digits (lt4:, lt5:, lt7: …), which the namespace-stripping step didn't handle, causing an unbound prefix parse error. Refs NerdySoftPaw/openpublictransport#39.

Includes a regression test parsing a realistic multi-namespace response.