diff --git a/homeassistant/components/homekit/__init__.py b/homeassistant/components/homekit/__init__.py index ee53c6da6658b5..c203d674710ad6 100644 --- a/homeassistant/components/homekit/__init__.py +++ b/homeassistant/components/homekit/__init__.py @@ -489,7 +489,7 @@ def __init__( advertise_ip: str | None, entry_id: str, entry_title: str, - devices: Iterable[str] | None = None, + devices: list[str] | None = None, ) -> None: """Initialize a HomeKit object.""" self.hass = hass diff --git a/homeassistant/components/lifx/discovery.py b/homeassistant/components/lifx/discovery.py index 6e1507c92ca7f9..a4072ee23effbb 100644 --- a/homeassistant/components/lifx/discovery.py +++ b/homeassistant/components/lifx/discovery.py @@ -2,7 +2,7 @@ from __future__ import annotations import asyncio -from collections.abc import Iterable +from collections.abc import Collection, Iterable from aiolifx.aiolifx import LifxDiscovery, Light, ScanManager @@ -17,7 +17,7 @@ DEFAULT_TIMEOUT = 8.5 -async def async_discover_devices(hass: HomeAssistant) -> Iterable[Light]: +async def async_discover_devices(hass: HomeAssistant) -> Collection[Light]: """Discover lifx devices.""" all_lights: dict[str, Light] = {} broadcast_addrs = await network.async_get_ipv4_broadcast_addresses(hass)