Use AddEntitiesCallback type, pt.3 (#49953)

This commit is contained in:
Ruslan Sayfutdinov 2021-05-04 22:36:48 +01:00 committed by GitHub
parent 4d939486a9
commit 004fa63dbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 113 additions and 106 deletions

View file

@ -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)