None optional hass typing in FlowHandler (#46462)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
1244fb4152
commit
bc1daf1802
58 changed files with 22 additions and 141 deletions
|
@ -198,7 +198,7 @@ class TotpSetupFlow(SetupFlow):
|
|||
errors: Dict[str, str] = {}
|
||||
|
||||
if user_input:
|
||||
verified = await self.hass.async_add_executor_job( # type: ignore
|
||||
verified = await self.hass.async_add_executor_job(
|
||||
pyotp.TOTP(self._ota_secret).verify, user_input["code"]
|
||||
)
|
||||
if verified:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue