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 switches."""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Callable
|
||||
from typing import Any
|
||||
|
||||
import pyvera as veraApi
|
||||
|
||||
|
@ -12,7 +12,7 @@ from homeassistant.components.switch 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
|
||||
from homeassistant.util import convert
|
||||
|
||||
from . import VeraDevice
|
||||
|
@ -22,7 +22,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