Skip to content

Releases: delize/HASL-integration

v4.0.0-beta.2

v4.0.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@delize delize released this 30 Nov 02:43
5e07be4

4.0.0-beta.2: trafiklab-sl v2.2.0b1 compatibility

This release updates compatibility with the local trafiklab-sl library v2.2.0b1.

Changes since beta.1

  • Update manifest.json to require trafiklab-sl>=2.2.0b1
  • Fix TransportMode import in departure.py (moved to tsl.models.common in v2.2.0)
  • Fix Journey and SearchLeg imports in route.py (moved to tsl.models.journey in v2.2.0)

Important Note

Direct API calls are maintained in the codebase as a fallback until the trafiklab-sl library is published under an organization (currently at https://github.com/NecroKote/trafiklab-sl).

Full Changelog from 3.x

See v4.0.0-beta.1 release notes for the complete list of changes from 3.x.

v4.0.0-beta.1

v4.0.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@delize delize released this 30 Nov 00:48
e3e9698

4.0.0-beta.1: Major architecture update with new SL APIs

This is a beta release for testing the major API migration.

Changes

  • Migrate to trafiklab-sl library (v2.1.1) for all SL API integration
  • Adopt DataUpdateCoordinator pattern (modern Home Assistant approach)
  • Create new sensors/ directory structure with modular sensor files
  • Create services/ directory with modular service implementations
  • Remove deprecated Vehicle Location sensor (api.sl.se discontinued)
  • Update config_flow with modern selectors
  • Simplify haslworker to minimal legacy support

API Changes

Old API New API Key Required
RI4 (departures) SL Transport API No
SI2/TL2 (deviations) SL Deviations API No (1 req/min limit)
RP3/PU1 (routing) SL Journey Planner v2 No
api.sl.se (vehicles) DISCONTINUED N/A
ResRobot ResRobot v2.1 Yes (unchanged)

New Sensor Types

  • departure_v2 - Uses trafiklab-sl TransportClient
  • status_v2 - Uses trafiklab-sl DeviationsClient (61s minimum scan interval)
  • route_v2 - Uses trafiklab-sl JourneyPlannerClient

Breaking Changes

  • Vehicle Location sensor type removed (API discontinued)
  • Sensor type names changed to *_v2 variants
  • Configuration schema version bumped to 5

Installation

Add this repository as a custom HACS repository or manually copy custom_components/hasl3 to your Home Assistant config directory.

Note: This is a pre-release. Please report any issues on GitHub.