Make sure config flows extend ConfigFlow base class (#26051)

This commit is contained in:
Paulus Schoutsen 2019-08-18 11:36:23 -07:00 committed by GitHub
parent d4981a1143
commit 3463cc9cbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
"""Config flow to configure IPMA component."""
import voluptuous as vol
from homeassistant import config_entries, data_entry_flow
from homeassistant import config_entries
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
import homeassistant.helpers.config_validation as cv
@ -9,7 +9,7 @@ from .const import DOMAIN, HOME_LOCATION_NAME
@config_entries.HANDLERS.register(DOMAIN)
class IpmaFlowHandler(data_entry_flow.FlowHandler):
class IpmaFlowHandler(config_entries.ConfigFlow):
"""Config flow for IPMA component."""
VERSION = 1

View File

@ -1,7 +1,7 @@
"""Config flow to configure Met component."""
import voluptuous as vol
from homeassistant import config_entries, data_entry_flow
from homeassistant import config_entries
from homeassistant.const import CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
from homeassistant.core import callback
import homeassistant.helpers.config_validation as cv
@ -18,7 +18,7 @@ def configured_instances(hass):
@config_entries.HANDLERS.register(DOMAIN)
class MetFlowHandler(data_entry_flow.FlowHandler):
class MetFlowHandler(config_entries.ConfigFlow):
"""Config flow for Met component."""
VERSION = 1

View File

@ -1,7 +1,7 @@
"""Config flow to configure SMHI component."""
import voluptuous as vol
from homeassistant import config_entries, data_entry_flow
from homeassistant import config_entries
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers import aiohttp_client
@ -21,7 +21,7 @@ def smhi_locations(hass: HomeAssistant):
@config_entries.HANDLERS.register(DOMAIN)
class SmhiFlowHandler(data_entry_flow.FlowHandler):
class SmhiFlowHandler(config_entries.ConfigFlow):
"""Config flow for SMHI component."""
VERSION = 1