Add init type hints [k-l] (#63188)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-02 16:34:33 +01:00 committed by GitHub
parent 1d41e5b0c6
commit e02f0c34e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 57 additions and 26 deletions

View file

@ -13,8 +13,10 @@ from homeassistant.const import (
CONF_USERNAME,
Platform,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers import config_validation as cv, discovery
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.typing import ConfigType
_LOGGER = logging.getLogger(__name__)
@ -44,7 +46,7 @@ LUPUSEC_PLATFORMS = [
]
def setup(hass, config):
def setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up Lupusec component."""
conf = config[DOMAIN]
username = conf[CONF_USERNAME]