From 3463cc9cbdc99ac90e6df21dfa9b507bd63279cf Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 18 Aug 2019 11:36:23 -0700 Subject: [PATCH] Make sure config flows extend ConfigFlow base class (#26051) --- homeassistant/components/ipma/config_flow.py | 4 ++-- homeassistant/components/met/config_flow.py | 4 ++-- homeassistant/components/smhi/config_flow.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/ipma/config_flow.py b/homeassistant/components/ipma/config_flow.py index c0bc383abc0..d1532066f68 100644 --- a/homeassistant/components/ipma/config_flow.py +++ b/homeassistant/components/ipma/config_flow.py @@ -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 diff --git a/homeassistant/components/met/config_flow.py b/homeassistant/components/met/config_flow.py index 9088d958cf0..e903c717e64 100644 --- a/homeassistant/components/met/config_flow.py +++ b/homeassistant/components/met/config_flow.py @@ -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 diff --git a/homeassistant/components/smhi/config_flow.py b/homeassistant/components/smhi/config_flow.py index a68c8293a9f..3b60cb66165 100644 --- a/homeassistant/components/smhi/config_flow.py +++ b/homeassistant/components/smhi/config_flow.py @@ -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