From 9c5e0fc5e0790f60e59d65180cd0394cd23ba23c Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Mon, 14 Feb 2022 20:10:18 +0100 Subject: [PATCH] Fix `auth` type comment (#66522) --- homeassistant/auth/mfa_modules/totp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/auth/mfa_modules/totp.py b/homeassistant/auth/mfa_modules/totp.py index c979ba05b5a..a88aa19d742 100644 --- a/homeassistant/auth/mfa_modules/totp.py +++ b/homeassistant/auth/mfa_modules/totp.py @@ -182,8 +182,8 @@ class TotpSetupFlow(SetupFlow): self._auth_module: TotpAuthModule = auth_module self._user = user self._ota_secret: str = "" - self._url = None # type Optional[str] - self._image = None # type Optional[str] + self._url: str | None = None + self._image: str | None = None async def async_step_init( self, user_input: dict[str, str] | None = None @@ -218,7 +218,7 @@ class TotpSetupFlow(SetupFlow): self._url, self._image, ) = await hass.async_add_executor_job( - _generate_secret_and_qr_code, # type: ignore + _generate_secret_and_qr_code, str(self._user.name), )