2019-05-13 08:16:55 +00:00
|
|
|
"""Config flow for TP-Link."""
|
|
|
|
from homeassistant import config_entries
|
2019-10-13 15:05:04 +00:00
|
|
|
from homeassistant.helpers import config_entry_flow
|
2019-05-13 08:16:55 +00:00
|
|
|
|
2019-10-13 15:05:04 +00:00
|
|
|
from .common import async_get_discoverable_devices
|
|
|
|
from .const import DOMAIN
|
2019-05-13 08:16:55 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
config_entry_flow.register_discovery_flow(
|
|
|
|
DOMAIN,
|
|
|
|
"TP-Link Smart Home",
|
|
|
|
async_get_discoverable_devices,
|
|
|
|
config_entries.CONN_CLASS_LOCAL_POLL,
|
|
|
|
)
|