1 """Config flow for Zerproc."""
10 from .const
import DOMAIN
12 _LOGGER = logging.getLogger(__name__)
16 """Return if there are devices that can be discovered."""
18 devices = await pyzerproc.discover()
19 return len(devices) > 0
20 except pyzerproc.ZerprocException:
21 _LOGGER.exception(
"Unable to discover nearby Zerproc devices")
25 config_entry_flow.register_discovery_flow(DOMAIN,
"Zerproc", _async_has_devices)
bool _async_has_devices(HomeAssistant hass)