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

Classes

class  LondonTubeSensor
 

Functions

None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 PLATFORM_SCHEMA
 

Detailed Description

Sensor for checking the status of London Underground tube lines.

Function Documentation

◆ async_setup_platform()

None homeassistant.components.london_underground.sensor.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the Tube sensor.

Definition at line 33 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 26 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.london_underground.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {vol.Required(CONF_LINE): vol.All(cv.ensure_list, [vol.In(list(TUBE_LINES))])}
3 )

Definition at line 28 of file sensor.py.