mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 18:58:04 +02:00
Use AddEntitiesCallback type, pt.2 (#49921)
This commit is contained in:
committed by
GitHub
parent
4ed74cd2f5
commit
cbaeec2a4e
@ -2,7 +2,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import timedelta
|
||||
from typing import Callable
|
||||
|
||||
from pyisy.constants import (
|
||||
CMD_OFF,
|
||||
@ -27,6 +26,7 @@ from homeassistant.components.binary_sensor import (
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.event import async_track_point_in_utc_time
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
@ -61,7 +61,7 @@ DEVICE_PARENT_REQUIRED = [
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
entry: ConfigEntry,
|
||||
async_add_entities: Callable[[list], None],
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
) -> bool:
|
||||
"""Set up the ISY994 binary sensor platform."""
|
||||
devices = []
|
||||
|
Reference in New Issue
Block a user