Home Assistant Unofficial Reference 2024.12.1
homeassistant.auth.mfa_modules.totp.TotpSetupFlow Class Reference
Inheritance diagram for homeassistant.auth.mfa_modules.totp.TotpSetupFlow:
[legend]
Collaboration diagram for homeassistant.auth.mfa_modules.totp.TotpSetupFlow:
[legend]

Public Member Functions

None __init__ (self, TotpAuthModule auth_module, vol.Schema setup_schema, User user)
 
FlowResult async_step_init (self, dict[str, str]|None user_input=None)
 

Private Attributes

 _user
 

Detailed Description

Handler for the setup flow.

Definition at line 177 of file totp.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.auth.mfa_modules.totp.TotpSetupFlow.__init__ (   self,
TotpAuthModule  auth_module,
vol.Schema  setup_schema,
User   user 
)
Initialize the setup flow.

Definition at line 185 of file totp.py.

Member Function Documentation

◆ async_step_init()

FlowResult homeassistant.auth.mfa_modules.totp.TotpSetupFlow.async_step_init (   self,
dict[str, str] | None   user_input = None 
)
Handle the first step of setup flow.

Return self.async_show_form(step_id='init') if user_input is None.
Return self.async_create_entry(data={'result': result}) if finish.

Definition at line 192 of file totp.py.

Member Data Documentation

◆ _user

homeassistant.auth.mfa_modules.totp.TotpSetupFlow._user
private

Definition at line 190 of file totp.py.


The documentation for this class was generated from the following file: