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

Classes

class  SwissPublicTransportSensor
 
class  SwissPublicTransportSensorEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, SwissPublicTransportConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 SCAN_INTERVAL = timedelta(seconds=90)
 

Detailed Description

Support for transport.opendata.ch.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.swiss_public_transport.sensor.async_setup_entry ( HomeAssistant  hass,
SwissPublicTransportConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the sensor from a config entry created in the integrations UI.

Definition at line 86 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.swiss_public_transport.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 30 of file sensor.py.

◆ SCAN_INTERVAL

homeassistant.components.swiss_public_transport.sensor.SCAN_INTERVAL = timedelta(seconds=90)

Definition at line 32 of file sensor.py.