feat: add AM/PM route distinction and clean up legacy device trackers #7
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/cleanup-and-route-labels"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR cleans up outdated entities and introduces intelligent AM/PM route labeling:
get_run_display_nameto inspectrunName,runDescription, and planned stop times. If a route doesn't have an explicit label, it determines whether it is an morning (AM) or afternoon (PM) route based on stop schedules._2entity IDs (e.g.,<student>_busand<student>_bus_2). Entities are now clearly designated (e.g.,device_tracker.<student>_bus_amanddevice_tracker.<student>_bus_pm).myride_*_tracker) from Home Assistant's entity registry during integration setup.0.2.2.