Add disallow_untyped_calls to mypy check. (#15661)
* Add disallow_untyped_calls to mypy check. * Fix generator
This commit is contained in:
1 parent
951372491c
commit
8ee3b535ef
7 files changed
+29
-18
No files matched your search
@@ -2,9 +2,10 @@
|
||||
import asyncio
|
||||
import logging
|
||||
from collections import OrderedDict
|
||||
from typing import List, Awaitable
|
||||
|
||||
from homeassistant import data_entry_flow
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.core import callback, HomeAssistant
|
||||
|
||||
from . import models
|
||||
from . import auth_store
|
||||
@@ -13,7 +14,9 @@ from .providers import auth_provider_from_config
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def auth_manager_from_config(hass, provider_configs):
|
||||
async def auth_manager_from_config(
|
||||
hass: HomeAssistant,
|
||||
provider_configs: List[dict]) -> Awaitable['AuthManager']:
|
||||
"""Initialize an auth manager from config."""
|
||||
store = auth_store.AuthStore(hass)
|
||||
if provider_configs:
|
||||
|
||||
Reference in new issue
Block a user