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
|
@ -4,7 +4,7 @@ from collections import OrderedDict
|
|||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries, data_entry_flow
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.const import (
|
||||
CONF_API_KEY, CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE)
|
||||
|
@ -23,10 +23,11 @@ def configured_instances(hass):
|
|||
|
||||
|
||||
@config_entries.HANDLERS.register(DOMAIN)
|
||||
class OpenUvFlowHandler(data_entry_flow.FlowHandler):
|
||||
class OpenUvFlowHandler(config_entries.ConfigFlow):
|
||||
"""Handle an OpenUV config flow."""
|
||||
|
||||
VERSION = 1
|
||||
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
|
||||
|
||||
def __init__(self):
|
||||
"""Initialize the config flow."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue