The class for handling data retrieval.
Definition at line 136 of file sensor.py.
◆ __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.
◆ 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.
◆ info
| homeassistant.components.oasa_telematics.sensor.OASATelematicsData.info |
◆ name_data
| homeassistant.components.oasa_telematics.sensor.OASATelematicsData.name_data |
◆ oasa_api
| homeassistant.components.oasa_telematics.sensor.OASATelematicsData.oasa_api |
◆ route_id
| homeassistant.components.oasa_telematics.sensor.OASATelematicsData.route_id |
◆ stop_id
| homeassistant.components.oasa_telematics.sensor.OASATelematicsData.stop_id |
The documentation for this class was generated from the following file:
- core/homeassistant/components/oasa_telematics/sensor.py