14 lines
364 B
Python
14 lines
364 B
Python
"""Config flow for TP-Link."""
|
|
from homeassistant import config_entries
|
|
from homeassistant.helpers import config_entry_flow
|
|
|
|
from .common import async_get_discoverable_devices
|
|
from .const import DOMAIN
|
|
|
|
config_entry_flow.register_discovery_flow(
|
|
DOMAIN,
|
|
"TP-Link Smart Home",
|
|
async_get_discoverable_devices,
|
|
config_entries.CONN_CLASS_LOCAL_POLL,
|
|
)
|