Fix `auth` type comment (#66522)

pull/66529/head
Marc Mueller 2022-02-14 20:10:18 +01:00 committed by GitHub
parent 2bcc21ecbb
commit 9c5e0fc5e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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),
)