mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-10 10:56:28 +00:00
Update config_entries_config_flow_handler.md
This commit is contained in:
parent
7ee774329d
commit
b7be22f1f7
@ -78,13 +78,14 @@ If your integration is discoverable without requiring any authentication, you'll
|
|||||||
"""Config flow for LIFX."""
|
"""Config flow for LIFX."""
|
||||||
from homeassistant.helpers import config_entry_flow
|
from homeassistant.helpers import config_entry_flow
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
|
||||||
|
import aiolifx
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
|
|
||||||
async def _async_has_devices(hass):
|
async def _async_has_devices(hass):
|
||||||
"""Return if there are devices that can be discovered."""
|
"""Return if there are devices that can be discovered."""
|
||||||
import aiolifx
|
|
||||||
|
|
||||||
lifx_ip_addresses = await aiolifx.LifxScan(hass.loop).scan()
|
lifx_ip_addresses = await aiolifx.LifxScan(hass.loop).scan()
|
||||||
return len(lifx_ip_addresses) > 0
|
return len(lifx_ip_addresses) > 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user