Add light setup type hints [s-z] (#63293)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
a46f25f2a9
commit
7967f49e48
18 changed files with 169 additions and 20 deletions
|
@ -1,4 +1,6 @@
|
|||
"""Support for SCSGate lights."""
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
|
||||
from scsgate.tasks import ToggleStatusTask
|
||||
|
@ -6,7 +8,10 @@ import voluptuous as vol
|
|||
|
||||
from homeassistant.components.light import PLATFORM_SCHEMA, LightEntity
|
||||
from homeassistant.const import ATTR_ENTITY_ID, ATTR_STATE, CONF_DEVICES, CONF_NAME
|
||||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||
|
||||
from . import CONF_SCS_ID, DOMAIN, SCSGATE_SCHEMA
|
||||
|
||||
|
@ -15,7 +20,12 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||
)
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
def setup_platform(
|
||||
hass: HomeAssistant,
|
||||
config: ConfigType,
|
||||
add_entities: AddEntitiesCallback,
|
||||
discovery_info: DiscoveryInfoType | None = None,
|
||||
) -> None:
|
||||
"""Set up the SCSGate switches."""
|
||||
devices = config.get(CONF_DEVICES)
|
||||
lights = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue