Add init type hints [b-c] (#63100)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-02 17:05:18 +01:00 committed by GitHub
parent 5d037a079d
commit 9e16f87ddc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 45 additions and 23 deletions

View file

@ -13,9 +13,10 @@ from homeassistant.const import (
CONF_REGION,
EVENT_HOMEASSISTANT_STOP,
)
from homeassistant.core import ServiceCall, callback
from homeassistant.core import HomeAssistant, ServiceCall, callback
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import config_validation as cv, entityfilter
from homeassistant.helpers.typing import ConfigType
from homeassistant.loader import bind_hass
from homeassistant.util.aiohttp import MockRequest
@ -168,7 +169,7 @@ def is_cloudhook_request(request):
return isinstance(request, MockRequest)
async def async_setup(hass, config):
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Initialize the Home Assistant cloud."""
# Process configs
if DOMAIN in config: