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