Add setup type hints [h-i] (#63603)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
a08b758bfb
commit
8c49fff699
19 changed files with 71 additions and 23 deletions
|
@ -36,6 +36,7 @@ from homeassistant.helpers.dispatcher import (
|
|||
async_dispatcher_send,
|
||||
)
|
||||
from homeassistant.helpers.entity import DeviceInfo
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.util.dt import utcnow
|
||||
|
||||
from .const import (
|
||||
|
@ -76,8 +77,8 @@ _LOGGER = logging.getLogger(__name__)
|
|||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant, entry: ConfigEntry, async_add_entities
|
||||
):
|
||||
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
|
||||
) -> None:
|
||||
"""Add media players for a config entry."""
|
||||
players = hass.data[HEOS_DOMAIN][DOMAIN]
|
||||
devices = [HeosMediaPlayer(player) for player in players.values()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue