Add setup type hints [v-y] (#63614)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
0700c73bd0
commit
ecb921949a
8 changed files with 41 additions and 15 deletions
|
@ -5,6 +5,7 @@ from homeassistant.components.binary_sensor import BinarySensorEntity
|
|||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
from .const import DATA_CONFIG_ENTRIES, DATA_DEVICE, DATA_UPDATED, DOMAIN
|
||||
from .entity import YeelightEntity
|
||||
|
@ -13,7 +14,9 @@ _LOGGER = logging.getLogger(__name__)
|
|||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant, config_entry: ConfigEntry, async_add_entities
|
||||
hass: HomeAssistant,
|
||||
config_entry: ConfigEntry,
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up Yeelight from a config entry."""
|
||||
device = hass.data[DOMAIN][DATA_CONFIG_ENTRIES][config_entry.entry_id][DATA_DEVICE]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue