Add config entries to connection class (#16618)
This commit is contained in:
parent
3e0c6c176a
commit
201fd4afee
24 changed files with 104 additions and 63 deletions
|
@ -6,7 +6,7 @@ import os
|
|||
import async_timeout
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries, data_entry_flow
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers import aiohttp_client
|
||||
|
||||
|
@ -41,10 +41,11 @@ def _find_username_from_config(hass, filename):
|
|||
|
||||
|
||||
@config_entries.HANDLERS.register(DOMAIN)
|
||||
class HueFlowHandler(data_entry_flow.FlowHandler):
|
||||
class HueFlowHandler(config_entries.ConfigFlow):
|
||||
"""Handle a Hue config flow."""
|
||||
|
||||
VERSION = 1
|
||||
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
|
||||
|
||||
def __init__(self):
|
||||
"""Initialize the Hue flow."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue