Use AddEntitiesCallback type, pt.4 (#49955)
This commit is contained in:
parent
a0feee083c
commit
786c5db5be
14 changed files with 37 additions and 48 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue