Add init type hints [s] (#63193)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-02 16:29:52 +01:00 committed by GitHub
parent 33e926371f
commit 00ec874389
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 73 additions and 42 deletions

View file

@ -6,9 +6,11 @@ from pyspcwebgw.area import Area
from pyspcwebgw.zone import Zone
import voluptuous as vol
from homeassistant.core import HomeAssistant
from homeassistant.helpers import aiohttp_client, discovery
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers.typing import ConfigType
_LOGGER = logging.getLogger(__name__)
@ -34,7 +36,7 @@ CONFIG_SCHEMA = vol.Schema(
)
async def async_setup(hass, config):
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the SPC component."""
async def async_upate_callback(spc_object):