1 """Config flow for Kuler Sky."""
10 from .const
import DOMAIN
12 _LOGGER = logging.getLogger(__name__)
16 """Return if there are devices that can be discovered."""
19 devices = await pykulersky.discover()
20 except pykulersky.PykulerskyException
as exc:
21 _LOGGER.error(
"Unable to discover nearby Kuler Sky devices: %s", exc)
23 return len(devices) > 0
26 config_entry_flow.register_discovery_flow(DOMAIN,
"Kuler Sky", _async_has_devices)
bool _async_has_devices(HomeAssistant hass)