From b7be22f1f73292f51682543bb7f328e158eec230 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 12 Jun 2019 14:13:28 -0700 Subject: [PATCH] Update config_entries_config_flow_handler.md --- docs/config_entries_config_flow_handler.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/config_entries_config_flow_handler.md b/docs/config_entries_config_flow_handler.md index 60c9a7fc..c266e0ba 100644 --- a/docs/config_entries_config_flow_handler.md +++ b/docs/config_entries_config_flow_handler.md @@ -78,13 +78,14 @@ If your integration is discoverable without requiring any authentication, you'll """Config flow for LIFX.""" from homeassistant.helpers import config_entry_flow from homeassistant import config_entries + +import aiolifx + from .const import DOMAIN async def _async_has_devices(hass): """Return if there are devices that can be discovered.""" - import aiolifx - lifx_ip_addresses = await aiolifx.LifxScan(hass.loop).scan() return len(lifx_ip_addresses) > 0