Add init type hints [k-l] (#63188)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
1d41e5b0c6
commit
e02f0c34e5
17 changed files with 57 additions and 26 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue