Home Assistant Unofficial Reference
2024.12.1
hub.py
Go to the documentation of this file.
1
"""Hub."""
2
3
from
pygti.gti
import
GTI, Auth
4
5
6
class
GTIHub
:
7
"""GTI Hub."""
8
9
def
__init__
(self, host, username, password, session):
10
"""Initialize."""
11
self.
host
host = host
12
self.
username
username = username
13
self.
password
password = password
14
15
self.
gti
gti = GTI(Auth(session, self.
username
username, self.
password
password, self.
host
host))
16
17
async
def
authenticate
(self):
18
"""Test if we can authenticate with the host."""
19
20
return
await self.
gti
gti.init()
homeassistant.components.hvv_departures.hub.GTIHub
Definition:
hub.py:6
homeassistant.components.hvv_departures.hub.GTIHub.authenticate
def authenticate(self)
Definition:
hub.py:17
homeassistant.components.hvv_departures.hub.GTIHub.host
host
Definition:
hub.py:11
homeassistant.components.hvv_departures.hub.GTIHub.__init__
def __init__(self, host, username, password, session)
Definition:
hub.py:9
homeassistant.components.hvv_departures.hub.GTIHub.gti
gti
Definition:
hub.py:15
homeassistant.components.hvv_departures.hub.GTIHub.username
username
Definition:
hub.py:12
homeassistant.components.hvv_departures.hub.GTIHub.password
password
Definition:
hub.py:13
core
homeassistant
components
hvv_departures
hub.py
Generated by
1.9.1