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

Classes

class  HVVDepartureSensor
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string ATTR_CANCELLED = "cancelled"
 
string ATTR_DELAY = "delay"
 
string ATTR_DEPARTURE = "departure"
 
string ATTR_DIRECTION = "direction"
 
string ATTR_EXTRA = "extra"
 
string ATTR_LINE = "line"
 
string ATTR_NEXT = "next"
 
string ATTR_ORIGIN = "origin"
 
string ATTR_TYPE = "type"
 
 BERLIN_TIME_ZONE = get_time_zone("Europe/Berlin")
 
int MAX_LIST = 20
 
int MAX_TIME_OFFSET = 360
 
 MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=1)
 
int PARALLEL_UPDATES = 0
 

Detailed Description

Sensor platform for hvv.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.hvv_departures.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the sensor platform.

Definition at line 42 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 39 of file sensor.py.

◆ ATTR_CANCELLED

string homeassistant.components.hvv_departures.sensor.ATTR_CANCELLED = "cancelled"

Definition at line 33 of file sensor.py.

◆ ATTR_DELAY

string homeassistant.components.hvv_departures.sensor.ATTR_DELAY = "delay"

Definition at line 31 of file sensor.py.

◆ ATTR_DEPARTURE

string homeassistant.components.hvv_departures.sensor.ATTR_DEPARTURE = "departure"

Definition at line 26 of file sensor.py.

◆ ATTR_DIRECTION

string homeassistant.components.hvv_departures.sensor.ATTR_DIRECTION = "direction"

Definition at line 29 of file sensor.py.

◆ ATTR_EXTRA

string homeassistant.components.hvv_departures.sensor.ATTR_EXTRA = "extra"

Definition at line 34 of file sensor.py.

◆ ATTR_LINE

string homeassistant.components.hvv_departures.sensor.ATTR_LINE = "line"

Definition at line 27 of file sensor.py.

◆ ATTR_NEXT

string homeassistant.components.hvv_departures.sensor.ATTR_NEXT = "next"

Definition at line 32 of file sensor.py.

◆ ATTR_ORIGIN

string homeassistant.components.hvv_departures.sensor.ATTR_ORIGIN = "origin"

Definition at line 28 of file sensor.py.

◆ ATTR_TYPE

string homeassistant.components.hvv_departures.sensor.ATTR_TYPE = "type"

Definition at line 30 of file sensor.py.

◆ BERLIN_TIME_ZONE

homeassistant.components.hvv_departures.sensor.BERLIN_TIME_ZONE = get_time_zone("Europe/Berlin")

Definition at line 37 of file sensor.py.

◆ MAX_LIST

int homeassistant.components.hvv_departures.sensor.MAX_LIST = 20

Definition at line 23 of file sensor.py.

◆ MAX_TIME_OFFSET

int homeassistant.components.hvv_departures.sensor.MAX_TIME_OFFSET = 360

Definition at line 24 of file sensor.py.

◆ MIN_TIME_BETWEEN_UPDATES

homeassistant.components.hvv_departures.sensor.MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=1)

Definition at line 22 of file sensor.py.

◆ PARALLEL_UPDATES

int homeassistant.components.hvv_departures.sensor.PARALLEL_UPDATES = 0

Definition at line 36 of file sensor.py.