Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.trafikverket_train.util Namespace Reference

Functions

date next_departuredate (list[str] departure)
 
date next_weekday (date fromdate, int weekday)
 

Detailed Description

Utils for trafikverket_train.

Function Documentation

◆ next_departuredate()

date homeassistant.components.trafikverket_train.util.next_departuredate ( list[str]  departure)
Calculate the next departuredate from an array input of short days.

Definition at line 18 of file util.py.

◆ next_weekday()

date homeassistant.components.trafikverket_train.util.next_weekday ( date  fromdate,
int  weekday 
)
Return the date of the next time a specific weekday happen.

Definition at line 10 of file util.py.