core/homeassistant/components/tplink/config_flow.py

14 lines
364 B
Python
Raw Normal View History

"""Config flow for TP-Link."""
from homeassistant.helpers import config_entry_flow
from homeassistant import config_entries
from .const import DOMAIN
from .common import async_get_discoverable_devices
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,
)