Use AddEntitiesCallback type, pt.4 (#49955)

This commit is contained in:
Ruslan Sayfutdinov 2021-05-04 13:50:06 +01:00 committed by GitHub
parent a0feee083c
commit 786c5db5be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 37 additions and 48 deletions

View file

@ -21,6 +21,7 @@ from homeassistant.const import (
from homeassistant.core import HomeAssistant
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import DeviceInfo
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import StateType
from homeassistant.helpers.update_coordinator import (
CoordinatorEntity,
@ -98,7 +99,7 @@ PLATFORM_SCHEMA = vol.All(
async def async_setup_platform(
hass: HomeAssistant,
config: ConfigEntry,
async_add_entities: Callable[[], Coroutine],
async_add_entities: AddEntitiesCallback,
discovery_info=None,
) -> None:
"""Import the platform into a config entry."""