Skip to content

Add departure card mapping#90

Open
Stenopolz wants to merge 7 commits intohasl-sensor:devfrom
Stenopolz:add-departure-card-mapping
Open

Add departure card mapping#90
Stenopolz wants to merge 7 commits intohasl-sensor:devfrom
Stenopolz:add-departure-card-mapping

Conversation

@Stenopolz
Copy link
Copy Markdown

@Stenopolz Stenopolz commented Mar 26, 2026

Map resrobot responses to the new format supported by departure lovelace card

photo_2026-03-28_21-53-42

@Stenopolz Stenopolz changed the base branch from master to dev March 26, 2026 21:26
@Stenopolz Stenopolz marked this pull request as ready for review March 28, 2026 20:53
Copy link
Copy Markdown

@NecroKote NecroKote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does slightly more than just "adding departure card mapping".
This PR also changes some sensors while removing others.
Can you at least clarify why?

ADDRESS_OR_POI = "AP" # Search for addresses and POIs


class BoardLanguage(Enum):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use StrEnum

HU = "hu" # Hungarian


class LocationType(Enum):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use StrEnum

HL = "HL" # Hailing point


class TransportCategory(Enum):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use StrEnum

FUT = "FUT" # International ferry


class JourneyStatus(Enum):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use StrEnum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants