Clean up connection classes in integrations P-S (#49893)

This commit is contained in:
Franck Nijhof 2021-05-01 09:04:44 +02:00 committed by GitHub
parent 64c7d84108
commit 8eb27374c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 3 additions and 61 deletions

View file

@ -29,7 +29,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Config flow for Panasonic Viera.""" """Config flow for Panasonic Viera."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Initialize the Panasonic Viera config flow.""" """Initialize the Panasonic Viera config flow."""

View file

@ -39,7 +39,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Philips TV.""" """Handle a config flow for Philips TV."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self) -> None: def __init__(self) -> None:
"""Initialize flow.""" """Initialize flow."""

View file

@ -33,7 +33,6 @@ class PiHoleFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a Pi-hole config flow.""" """Handle a Pi-hole config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Initialize the config flow.""" """Initialize the config flow."""

View file

@ -70,7 +70,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Picnic.""" """Handle a config flow for Picnic."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
async def async_step_user(self, user_input=None): async def async_step_user(self, user_input=None):
"""Handle the initial step.""" """Handle the initial step."""

View file

@ -31,7 +31,6 @@ class PlaatoConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handles a Plaato config flow.""" """Handles a Plaato config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Initialize.""" """Initialize."""

View file

@ -82,7 +82,6 @@ class PlexFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a Plex config flow.""" """Handle a Plex config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH
@staticmethod @staticmethod
@callback @callback

View file

@ -78,7 +78,6 @@ class PlugwiseConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Plugwise Smile.""" """Handle a config flow for Plugwise Smile."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Initialize the Plugwise config flow.""" """Initialize the Plugwise config flow."""

View file

@ -44,7 +44,6 @@ class PointFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow.""" """Handle a config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
def __init__(self): def __init__(self):
"""Initialize flow.""" """Initialize flow."""

View file

@ -17,7 +17,6 @@ class PoolSenseConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for PoolSense.""" """Handle a config flow for PoolSense."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
def __init__(self): def __init__(self):
"""Initialize PoolSense config flow.""" """Initialize PoolSense config flow."""

View file

@ -53,7 +53,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Tesla Powerwall.""" """Handle a config flow for Tesla Powerwall."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Initialize the powerwall flow.""" """Initialize the powerwall flow."""

View file

@ -10,7 +10,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Profiler.""" """Handle a config flow for Profiler."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_UNKNOWN
async def async_step_user(self, user_input=None): async def async_step_user(self, user_input=None):
"""Handle the initial step.""" """Handle the initial step."""

View file

@ -44,7 +44,6 @@ class ProgettiHWSWConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for ProgettiHWSW Automation.""" """Handle a config flow for ProgettiHWSW Automation."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Initialize class variables.""" """Initialize class variables."""

View file

@ -35,7 +35,6 @@ class PlayStation4FlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a PlayStation 4 config flow.""" """Handle a PlayStation 4 config flow."""
VERSION = CONFIG_ENTRY_VERSION VERSION = CONFIG_ENTRY_VERSION
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Initialize the config flow.""" """Initialize the config flow."""

View file

@ -11,7 +11,6 @@ class TariffSelectorConfigFlow(config_entries.ConfigFlow, domain=_DOMAIN_NAME):
"""Handle a config flow for `pvpc_hourly_pricing` to select the tariff.""" """Handle a config flow for `pvpc_hourly_pricing` to select the tariff."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
async def async_step_user(self, user_input=None): async def async_step_user(self, user_input=None):
"""Handle the initial step.""" """Handle the initial step."""

View file

@ -55,7 +55,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Rachio.""" """Handle a config flow for Rachio."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_PUSH
async def async_step_user(self, user_input=None): async def async_step_user(self, user_input=None):
"""Handle the initial step.""" """Handle the initial step."""

View file

@ -23,7 +23,6 @@ class RainMachineFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a RainMachine config flow.""" """Handle a RainMachine config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
@staticmethod @staticmethod
@callback @callback

View file

@ -21,7 +21,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for ReCollect Waste.""" """Handle a config flow for ReCollect Waste."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
@staticmethod @staticmethod
@callback @callback

View file

@ -444,7 +444,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for RFXCOM RFXtrx.""" """Handle a config flow for RFXCOM RFXtrx."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH
async def async_step_user(self, user_input=None): async def async_step_user(self, user_input=None):
"""Step when user initializes a integration.""" """Step when user initializes a integration."""

View file

@ -36,7 +36,6 @@ class RingConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Ring.""" """Handle a config flow for Ring."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
user_pass = None user_pass = None

View file

@ -58,7 +58,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Risco.""" """Handle a config flow for Risco."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
@staticmethod @staticmethod
@core.callback @core.callback

View file

@ -26,7 +26,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Rituals Perfume Genie.""" """Handle a config flow for Rituals Perfume Genie."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
async def async_step_user(self, user_input=None) -> FlowResult: async def async_step_user(self, user_input=None) -> FlowResult:
"""Handle the initial step.""" """Handle the initial step."""

View file

@ -12,7 +12,7 @@ from homeassistant.components.ssdp import (
ATTR_UPNP_FRIENDLY_NAME, ATTR_UPNP_FRIENDLY_NAME,
ATTR_UPNP_SERIAL, ATTR_UPNP_SERIAL,
) )
from homeassistant.config_entries import CONN_CLASS_LOCAL_POLL, ConfigFlow from homeassistant.config_entries import ConfigFlow
from homeassistant.const import CONF_HOST, CONF_NAME from homeassistant.const import CONF_HOST, CONF_NAME
from homeassistant.core import HomeAssistant, callback from homeassistant.core import HomeAssistant, callback
from homeassistant.data_entry_flow import FlowResult from homeassistant.data_entry_flow import FlowResult
@ -47,7 +47,6 @@ class RokuConfigFlow(ConfigFlow, domain=DOMAIN):
"""Handle a Roku config flow.""" """Handle a Roku config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Set up the instance.""" """Set up the instance."""

View file

@ -63,7 +63,6 @@ class RoombaConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Roomba configuration flow.""" """Roomba configuration flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH
def __init__(self): def __init__(self):
"""Initialize the roomba flow.""" """Initialize the roomba flow."""

View file

@ -105,7 +105,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for roon.""" """Handle a config flow for roon."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH
def __init__(self): def __init__(self):
"""Initialize the Roon flow.""" """Initialize the Roon flow."""

View file

@ -46,7 +46,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Ruckus Unleashed.""" """Handle a config flow for Ruckus Unleashed."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
async def async_step_user(self, user_input=None): async def async_step_user(self, user_input=None):
"""Handle the initial step.""" """Handle the initial step."""

View file

@ -48,7 +48,6 @@ class SamsungTVConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a Samsung TV config flow.""" """Handle a Samsung TV config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Initialize flow.""" """Initialize flow."""

View file

@ -71,7 +71,6 @@ class ScreenlogicConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Config flow to setup screen logic devices.""" """Config flow to setup screen logic devices."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Initialize ScreenLogic ConfigFlow.""" """Initialize ScreenLogic ConfigFlow."""

View file

@ -43,7 +43,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Sense.""" """Handle a config flow for Sense."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
async def async_step_user(self, user_input=None): async def async_step_user(self, user_input=None):
"""Handle the initial step.""" """Handle the initial step."""

View file

@ -37,7 +37,6 @@ class SentryConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a Sentry config flow.""" """Handle a Sentry config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
@staticmethod @staticmethod
@callback @callback

View file

@ -43,7 +43,6 @@ class SharkIqConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Shark IQ.""" """Handle a config flow for Shark IQ."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
async def _async_validate_input(self, user_input): async def _async_validate_input(self, user_input):
"""Validate form input.""" """Validate form input."""

View file

@ -59,7 +59,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Shelly.""" """Handle a config flow for Shelly."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH
host = None host = None
info = None info = None
device_info = None device_info = None

View file

@ -8,7 +8,6 @@ class ShoppingListFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Config flow for ShoppingList component.""" """Config flow for ShoppingList component."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH
async def async_step_user(self, user_input=None): async def async_step_user(self, user_input=None):
"""Handle a flow initialized by the user.""" """Handle a flow initialized by the user."""

View file

@ -29,7 +29,6 @@ class SimpliSafeFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a SimpliSafe config flow.""" """Handle a SimpliSafe config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
def __init__(self): def __init__(self):
"""Initialize the config flow.""" """Initialize the config flow."""

View file

@ -52,7 +52,6 @@ class SmaConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for SMA.""" """Handle a config flow for SMA."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self) -> None: def __init__(self) -> None:
"""Initialize.""" """Initialize."""

View file

@ -4,7 +4,6 @@ import logging
from pysmappee import helper, mqtt from pysmappee import helper, mqtt
import voluptuous as vol import voluptuous as vol
from homeassistant import config_entries
from homeassistant.const import CONF_HOST, CONF_IP_ADDRESS from homeassistant.const import CONF_HOST, CONF_IP_ADDRESS
from homeassistant.helpers import config_entry_oauth2_flow from homeassistant.helpers import config_entry_oauth2_flow
@ -25,7 +24,6 @@ class SmappeeFlowHandler(
"""Config Smappee config flow.""" """Config Smappee config flow."""
DOMAIN = DOMAIN DOMAIN = DOMAIN
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
async def async_oauth_create_entry(self, data): async def async_oauth_create_entry(self, data):
"""Create an entry for the flow.""" """Create an entry for the flow."""

View file

@ -48,7 +48,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Smart Meter Texas.""" """Handle a config flow for Smart Meter Texas."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
async def async_step_user(self, user_input=None): async def async_step_user(self, user_input=None):
"""Handle the initial step.""" """Handle the initial step."""

View file

@ -16,7 +16,6 @@ class SmartHabConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""SmartHab config flow.""" """SmartHab config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
def _show_setup_form(self, user_input=None, errors=None): def _show_setup_form(self, user_input=None, errors=None):
"""Show the setup form to the user.""" """Show the setup form to the user."""

View file

@ -44,7 +44,6 @@ class SmartThingsFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle configuration of SmartThings integrations.""" """Handle configuration of SmartThings integrations."""
VERSION = 2 VERSION = 2
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_PUSH
def __init__(self): def __init__(self):
"""Create a new instance of the flow handler.""" """Create a new instance of the flow handler."""

View file

@ -22,7 +22,6 @@ class SmartTubConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""SmartTub configuration flow.""" """SmartTub configuration flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
def __init__(self) -> None: def __init__(self) -> None:
"""Instantiate config flow.""" """Instantiate config flow."""

View file

@ -25,7 +25,6 @@ class SmhiFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Config flow for SMHI component.""" """Config flow for SMHI component."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
def __init__(self) -> None: def __init__(self) -> None:
"""Initialize SMHI forecast configuration flow.""" """Initialize SMHI forecast configuration flow."""

View file

@ -40,7 +40,6 @@ class SMSFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for SMS integration.""" """Handle a config flow for SMS integration."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
async def async_step_user(self, user_input=None): async def async_step_user(self, user_input=None):
"""Handle the initial step.""" """Handle the initial step."""

View file

@ -29,7 +29,6 @@ class SolarEdgeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow.""" """Handle a config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self) -> None: def __init__(self) -> None:
"""Initialize the config flow.""" """Initialize the config flow."""

View file

@ -28,7 +28,6 @@ class SolarLogConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for solarlog.""" """Handle a config flow for solarlog."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self) -> None: def __init__(self) -> None:
"""Initialize the config flow.""" """Initialize the config flow."""

View file

@ -19,7 +19,6 @@ class SomaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow.""" """Handle a config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Instantiate config flow.""" """Instantiate config flow."""

View file

@ -13,7 +13,6 @@ class SomfyFlowHandler(
"""Config flow to handle Somfy OAuth2 authentication.""" """Config flow to handle Somfy OAuth2 authentication."""
DOMAIN = DOMAIN DOMAIN = DOMAIN
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
@property @property
def logger(self) -> logging.Logger: def logger(self) -> logging.Logger:

View file

@ -51,7 +51,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Somfy MyLink.""" """Handle a config flow for Somfy MyLink."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_ASSUMED
def __init__(self): def __init__(self):
"""Initialize the somfy_mylink flow.""" """Initialize the somfy_mylink flow."""

View file

@ -7,7 +7,7 @@ from typing import Any
from sonarr import Sonarr, SonarrAccessRestricted, SonarrError from sonarr import Sonarr, SonarrAccessRestricted, SonarrError
import voluptuous as vol import voluptuous as vol
from homeassistant.config_entries import CONN_CLASS_LOCAL_POLL, ConfigFlow, OptionsFlow from homeassistant.config_entries import ConfigFlow, OptionsFlow
from homeassistant.const import ( from homeassistant.const import (
CONF_API_KEY, CONF_API_KEY,
CONF_HOST, CONF_HOST,
@ -62,7 +62,6 @@ class SonarrConfigFlow(ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Sonarr.""" """Handle a config flow for Sonarr."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Initialize the flow.""" """Initialize the flow."""

View file

@ -31,7 +31,6 @@ class SongpalConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Songpal configuration flow.""" """Songpal configuration flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_PUSH
def __init__(self): def __init__(self):
"""Initialize the flow.""" """Initialize the flow."""

View file

@ -21,7 +21,6 @@ class SpeedTestFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle Speedtest.net config flow.""" """Handle Speedtest.net config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
@staticmethod @staticmethod
@callback @callback

View file

@ -24,7 +24,6 @@ class SpiderConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a Spider config flow.""" """Handle a Spider config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
def __init__(self): def __init__(self):
"""Initialize the Spider flow.""" """Initialize the Spider flow."""

View file

@ -7,7 +7,6 @@ from typing import Any
from spotipy import Spotify from spotipy import Spotify
import voluptuous as vol import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components import persistent_notification from homeassistant.components import persistent_notification
from homeassistant.data_entry_flow import FlowResult from homeassistant.data_entry_flow import FlowResult
from homeassistant.helpers import config_entry_oauth2_flow from homeassistant.helpers import config_entry_oauth2_flow
@ -22,7 +21,6 @@ class SpotifyFlowHandler(
DOMAIN = DOMAIN DOMAIN = DOMAIN
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
def __init__(self) -> None: def __init__(self) -> None:
"""Instantiate config flow.""" """Instantiate config flow."""

View file

@ -59,7 +59,6 @@ class SqueezeboxConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Logitech Squeezebox.""" """Handle a config flow for Logitech Squeezebox."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
def __init__(self): def __init__(self):
"""Initialize an instance of the squeezebox config flow.""" """Initialize an instance of the squeezebox config flow."""

View file

@ -16,7 +16,6 @@ class ConfigFlow(config_entries.ConfigFlow, domain=SRP_ENERGY_DOMAIN):
"""Handle a config flow for SRP Energy.""" """Handle a config flow for SRP Energy."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
config = { config = {
vol.Required(CONF_ID): str, vol.Required(CONF_ID): str,

View file

@ -28,7 +28,6 @@ class StarlineFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a StarLine config flow.""" """Handle a StarLine config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
def __init__(self): def __init__(self):
"""Initialize flow.""" """Initialize flow."""

View file

@ -26,7 +26,6 @@ class SubaruConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Subaru.""" """Handle a config flow for Subaru."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
def __init__(self): def __init__(self):
"""Initialize config flow.""" """Initialize config flow."""

View file

@ -19,7 +19,6 @@ class SyncThruConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Samsung SyncThru config flow.""" """Samsung SyncThru config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
url: str url: str
name: str name: str

View file

@ -79,7 +79,6 @@ class SynologyDSMFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow.""" """Handle a config flow."""
VERSION = 1 VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_CLOUD_POLL
@staticmethod @staticmethod
@callback @callback