Repository navigation
Releases: delize/HASL-integration
Releases · delize/HASL-integration
Release list
v4.0.0-beta.2
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.jsonto requiretrafiklab-sl>=2.2.0b1 - Fix
TransportModeimport in departure.py (moved totsl.models.commonin v2.2.0) - Fix
JourneyandSearchLegimports in route.py (moved totsl.models.journeyin 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
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 TransportClientstatus_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
*_v2variants - 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.