Interface between Home Assistant and the SmartTub API.
Definition at line 33 of file controller.py.
◆ __init__()
| def homeassistant.components.smarttub.controller.SmartTubController.__init__ |
( |
|
self, |
|
|
|
hass |
|
) |
| |
Initialize an interface to SmartTub.
Definition at line 36 of file controller.py.
◆ _get_spa_data()
| def homeassistant.components.smarttub.controller.SmartTubController._get_spa_data |
( |
|
self, |
|
|
|
spa |
|
) |
| |
|
private |
◆ async_register_devices()
| def homeassistant.components.smarttub.controller.SmartTubController.async_register_devices |
( |
|
self, |
|
|
|
entry |
|
) |
| |
Register devices with the device registry for all spas.
Definition at line 110 of file controller.py.
◆ async_setup_entry()
| def homeassistant.components.smarttub.controller.SmartTubController.async_setup_entry |
( |
|
self, |
|
|
|
entry |
|
) |
| |
Perform initial setup.
Authenticate, query static state, set up polling, and otherwise make
ready for normal operations .
Definition at line 44 of file controller.py.
◆ async_update_data()
| def homeassistant.components.smarttub.controller.SmartTubController.async_update_data |
( |
|
self | ) |
|
Query the API and return the new state.
Definition at line 82 of file controller.py.
◆ login()
| Account homeassistant.components.smarttub.controller.SmartTubController.login |
( |
|
self, |
|
|
|
email, |
|
|
|
password |
|
) |
| |
Retrieve the account corresponding to the specified email and password.
Returns None if the credentials are invalid.
Definition at line 122 of file controller.py.
◆ _account
| homeassistant.components.smarttub.controller.SmartTubController._account |
|
private |
◆ _hass
| homeassistant.components.smarttub.controller.SmartTubController._hass |
|
private |
◆ coordinator
| homeassistant.components.smarttub.controller.SmartTubController.coordinator |
◆ spas
| homeassistant.components.smarttub.controller.SmartTubController.spas |
The documentation for this class was generated from the following file: