Upgrade mypy to 0.730, address raised issues (#26959)
https://mypy-lang.blogspot.com/2019/09/mypy-730-released.html
This commit is contained in:
parent
77654da341
commit
fde128d66c
11 changed files with 25 additions and 19 deletions
|
@ -251,8 +251,10 @@ class NotifyAuthModule(MultiFactorAuthModule):
|
|||
_LOGGER.error("Cannot find user %s", user_id)
|
||||
return
|
||||
|
||||
await self.async_notify( # type: ignore
|
||||
code, notify_setting.notify_service, notify_setting.target
|
||||
await self.async_notify(
|
||||
code,
|
||||
notify_setting.notify_service, # type: ignore
|
||||
notify_setting.target,
|
||||
)
|
||||
|
||||
async def async_notify(
|
||||
|
|
|
@ -215,8 +215,9 @@ class TotpSetupFlow(SetupFlow):
|
|||
|
||||
else:
|
||||
hass = self._auth_module.hass
|
||||
self._ota_secret, self._url, self._image = await hass.async_add_executor_job( # type: ignore
|
||||
_generate_secret_and_qr_code, str(self._user.name)
|
||||
self._ota_secret, self._url, self._image = await hass.async_add_executor_job(
|
||||
_generate_secret_and_qr_code, # type: ignore
|
||||
str(self._user.name),
|
||||
)
|
||||
|
||||
return self.async_show_form(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue