Add init type hints [t-u] (#63194)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
06b9be4d9c
commit
18056f3a8a
16 changed files with 57 additions and 36 deletions
|
@ -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, {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue