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

Functions

SwissPublicTransportConfigEntry async_get_entry (HomeAssistant hass, str config_entry_id)
 
None setup_services (HomeAssistant hass)
 

Variables

 SERVICE_FETCH_CONNECTIONS_SCHEMA
 

Detailed Description

Define services for the Swiss public transport integration.

Function Documentation

◆ async_get_entry()

SwissPublicTransportConfigEntry homeassistant.components.swiss_public_transport.services.async_get_entry ( HomeAssistant  hass,
str   config_entry_id 
)
Get the Swiss public transport config entry.

Definition at line 42 of file services.py.

◆ setup_services()

None homeassistant.components.swiss_public_transport.services.setup_services ( HomeAssistant  hass)
Set up the services for the Swiss public transport integration.

Definition at line 61 of file services.py.

Variable Documentation

◆ SERVICE_FETCH_CONNECTIONS_SCHEMA

homeassistant.components.swiss_public_transport.services.SERVICE_FETCH_CONNECTIONS_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(ATTR_CONFIG_ENTRY_ID): str,
4  vol.Optional(ATTR_LIMIT, default=CONNECTIONS_COUNT): NumberSelector(
5  NumberSelectorConfig(
6  min=1, max=CONNECTIONS_MAX, mode=NumberSelectorMode.BOX
7  )
8  ),
9  }
10 )

Definition at line 30 of file services.py.