Add init type hints [t-u] (#63194)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-02 07:06:11 +01:00 committed by GitHub
parent 06b9be4d9c
commit 18056f3a8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 57 additions and 36 deletions

View file

@ -14,10 +14,11 @@ from tellcorenet import TellCoreClient
import voluptuous as vol
from homeassistant.const import CONF_HOST, CONF_PORT, EVENT_HOMEASSISTANT_STOP
from homeassistant.core import callback
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers import discovery
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.typing import ConfigType
_LOGGER = logging.getLogger(__name__)
@ -80,7 +81,7 @@ def _discover(hass, config, component_name, found_tellcore_devices):
)
def setup(hass, config):
def setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up the Tellstick component."""
conf = config.get(DOMAIN, {})