Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.trafikverket_ferry.coordinator Namespace Reference

Classes

class  TVDataUpdateCoordinator
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
 TIME_BETWEEN_UPDATES = timedelta(minutes=5)
 

Detailed Description

DataUpdateCoordinator for the Trafikverket Ferry integration.

Function Documentation

◆ next_departuredate()

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

Definition at line 37 of file coordinator.py.

◆ next_weekday()

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

Definition at line 29 of file coordinator.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.trafikverket_ferry.coordinator._LOGGER = logging.getLogger(__name__)
private

Definition at line 25 of file coordinator.py.

◆ TIME_BETWEEN_UPDATES

homeassistant.components.trafikverket_ferry.coordinator.TIME_BETWEEN_UPDATES = timedelta(minutes=5)

Definition at line 26 of file coordinator.py.