Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.swiss_public_transport.helper Namespace Reference

Functions

str dict_duration_to_str_duration (dict[str, int] d)
 
None offset_opendata (OpendataTransport opendata, dict[str, int] offset)
 
str unique_id_from_config (MappingProxyType[str, Any]|dict[str, Any] config)
 

Detailed Description

Helper functions for swiss_public_transport.

Function Documentation

◆ dict_duration_to_str_duration()

str homeassistant.components.swiss_public_transport.helper.dict_duration_to_str_duration ( dict[str, int]  d)
Build a string from a dict duration.

Definition at line 32 of file helper.py.

◆ offset_opendata()

None homeassistant.components.swiss_public_transport.helper.offset_opendata ( OpendataTransport  opendata,
dict[str, int]  offset 
)
In place offset the opendata connector.

Definition at line 22 of file helper.py.

◆ unique_id_from_config()

str homeassistant.components.swiss_public_transport.helper.unique_id_from_config ( MappingProxyType[str, Any] | dict[str, Any]  config)
Build a unique id from a config entry.

Definition at line 39 of file helper.py.