Use AddEntitiesCallback type, pt.3 (#49953)
This commit is contained in:
parent
4d939486a9
commit
004fa63dbe
34 changed files with 113 additions and 106 deletions
|
@ -1,7 +1,7 @@
|
|||
"""Support for Vera lights."""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Callable
|
||||
from typing import Any
|
||||
|
||||
import pyvera as veraApi
|
||||
|
||||
|
@ -16,7 +16,7 @@ from homeassistant.components.light import (
|
|||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
import homeassistant.util.color as color_util
|
||||
|
||||
from . import VeraDevice
|
||||
|
@ -26,7 +26,7 @@ from .common import ControllerData, get_controller_data
|
|||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
entry: ConfigEntry,
|
||||
async_add_entities: Callable[[list[Entity], bool], None],
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up the sensor config entry."""
|
||||
controller_data = get_controller_data(hass, entry)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue