Public Member Functions | |
| None | __init__ (self, HomeAssistant hass, dict[str, Any] config) |
| None | async_depose_user (self, str user_id) |
| bool | async_is_user_setup (self, str user_id) |
| SetupFlow | async_setup_flow (self, str user_id) |
| str | async_setup_user (self, str user_id, Any setup_data) |
| bool | async_validate (self, str user_id, dict[str, Any] user_input) |
| vol.Schema | input_schema (self) |
Static Public Attributes | |
| string | DEFAULT_TITLE = "Time-based One Time Password" |
| int | MAX_RETRY_TIME = 5 |
Private Member Functions | |
| str | _add_ota_secret (self, str user_id, str|None secret=None) |
| None | _async_load (self) |
| None | _async_save (self) |
| bool | _validate_2fa (self, str user_id, str code) |
Private Attributes | |
| _init_lock | |
| _user_store | |
| _users | |
| None homeassistant.auth.mfa_modules.totp.TotpAuthModule.__init__ | ( | self, | |
| HomeAssistant | hass, | ||
| dict[str, Any] | config | ||
| ) |
|
private |
|
private |
|
private |
|
private |
| None homeassistant.auth.mfa_modules.totp.TotpAuthModule.async_depose_user | ( | self, | |
| str | user_id | ||
| ) |
| bool homeassistant.auth.mfa_modules.totp.TotpAuthModule.async_is_user_setup | ( | self, | |
| str | user_id | ||
| ) |
| SetupFlow homeassistant.auth.mfa_modules.totp.TotpAuthModule.async_setup_flow | ( | self, | |
| str | user_id | ||
| ) |
| str homeassistant.auth.mfa_modules.totp.TotpAuthModule.async_setup_user | ( | self, | |
| str | user_id, | ||
| Any | setup_data | ||
| ) |
| bool homeassistant.auth.mfa_modules.totp.TotpAuthModule.async_validate | ( | self, | |
| str | user_id, | ||
| dict[str, Any] | user_input | ||
| ) |
| vol.Schema homeassistant.auth.mfa_modules.totp.TotpAuthModule.input_schema | ( | self | ) |
|
private |
|
private |
|
private |
|
static |
|
static |