Public Member Functions | |
| None | __init__ (self, HomeAssistant hass, str client_id, str client_secret) |
| str|None | async_do_auth (self, str accept_grant_code) |
| str|None | async_get_access_token (self) |
| None | async_invalidate_access_token (self) |
| None | async_load_preferences (self) |
| bool | is_token_valid (self) |
Public Attributes | |
| client_id | |
| client_secret | |
| hass | |
Private Member Functions | |
| str|None | _async_request_new_token (self, dict[str, str] lwa_params) |
| None | _async_update_preferences (self, str access_token, str refresh_token, str expire_time) |
Private Attributes | |
| _get_token_lock | |
| _prefs | |
| None homeassistant.components.alexa.auth.Auth.__init__ | ( | self, | |
| HomeAssistant | hass, | ||
| str | client_id, | ||
| str | client_secret | ||
| ) |
|
private |
|
private |
| str | None homeassistant.components.alexa.auth.Auth.async_do_auth | ( | self, | |
| str | accept_grant_code | ||
| ) |
| str | None homeassistant.components.alexa.auth.Auth.async_get_access_token | ( | self | ) |
| None homeassistant.components.alexa.auth.Auth.async_invalidate_access_token | ( | self | ) |
| None homeassistant.components.alexa.auth.Auth.async_load_preferences | ( | self | ) |
| bool homeassistant.components.alexa.auth.Auth.is_token_valid | ( | self | ) |
|
private |