Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.oasa_telematics.sensor.OASATelematicsData Class Reference

Public Member Functions

def __init__ (self, stop_id, route_id)
 
def empty_result (self)
 
def get_route_name (self)
 
def get_stop_name (self)
 
def update (self)
 

Public Attributes

 info
 
 name_data
 
 oasa_api
 
 route_id
 
 stop_id
 

Detailed Description

The class for handling data retrieval.

Definition at line 136 of file sensor.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.oasa_telematics.sensor.OASATelematicsData.__init__ (   self,
  stop_id,
  route_id 
)
Initialize the data object.

Definition at line 139 of file sensor.py.

Member Function Documentation

◆ empty_result()

def homeassistant.components.oasa_telematics.sensor.OASATelematicsData.empty_result (   self)
Object returned when no arrivals are found.

Definition at line 150 of file sensor.py.

◆ get_route_name()

def homeassistant.components.oasa_telematics.sensor.OASATelematicsData.get_route_name (   self)
Get the route name from the API.

Definition at line 154 of file sensor.py.

◆ get_stop_name()

def homeassistant.components.oasa_telematics.sensor.OASATelematicsData.get_stop_name (   self)
Get the stop name from the API.

Definition at line 164 of file sensor.py.

◆ update()

def homeassistant.components.oasa_telematics.sensor.OASATelematicsData.update (   self)
Get the latest arrival data from telematics.oasa.gr API.

Definition at line 174 of file sensor.py.

Member Data Documentation

◆ info

homeassistant.components.oasa_telematics.sensor.OASATelematicsData.info

Definition at line 143 of file sensor.py.

◆ name_data

homeassistant.components.oasa_telematics.sensor.OASATelematicsData.name_data

Definition at line 145 of file sensor.py.

◆ oasa_api

homeassistant.components.oasa_telematics.sensor.OASATelematicsData.oasa_api

Definition at line 144 of file sensor.py.

◆ route_id

homeassistant.components.oasa_telematics.sensor.OASATelematicsData.route_id

Definition at line 142 of file sensor.py.

◆ stop_id

homeassistant.components.oasa_telematics.sensor.OASATelematicsData.stop_id

Definition at line 141 of file sensor.py.


The documentation for this class was generated from the following file: