1 """Config Flow for Refoss integration."""
3 from __future__
import annotations
8 from .const
import DISCOVERY_TIMEOUT, DOMAIN
9 from .util
import refoss_discovery_server
13 """Return if there are devices that can be discovered."""
16 devices = await refoss_discovery.broadcast_msg(wait_for=DISCOVERY_TIMEOUT)
17 return len(devices) > 0
20 config_entry_flow.register_discovery_flow(DOMAIN,
"Refoss", _async_has_devices)
bool _async_has_devices(HomeAssistant hass)
Discovery refoss_discovery_server(HomeAssistant hass)