diff --git a/homeassistant/components/alarmdecoder/config_flow.py b/homeassistant/components/alarmdecoder/config_flow.py index 52d17e407b7..9a4b9ae1098 100644 --- a/homeassistant/components/alarmdecoder/config_flow.py +++ b/homeassistant/components/alarmdecoder/config_flow.py @@ -54,7 +54,7 @@ class AlarmDecoderFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize AlarmDecoder ConfigFlow.""" self.protocol = None diff --git a/homeassistant/components/ambiclimate/config_flow.py b/homeassistant/components/ambiclimate/config_flow.py index bde5e41e392..16d790cc09c 100644 --- a/homeassistant/components/ambiclimate/config_flow.py +++ b/homeassistant/components/ambiclimate/config_flow.py @@ -45,7 +45,7 @@ class AmbiclimateFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize flow.""" self._registered_view = False self._oauth = None diff --git a/homeassistant/components/azure_devops/config_flow.py b/homeassistant/components/azure_devops/config_flow.py index a654dc2be61..81cfc2e8d45 100644 --- a/homeassistant/components/azure_devops/config_flow.py +++ b/homeassistant/components/azure_devops/config_flow.py @@ -19,7 +19,7 @@ class AzureDevOpsFlowHandler(ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize config flow.""" self._organization: str | None = None self._project: str | None = None diff --git a/homeassistant/components/azure_event_hub/config_flow.py b/homeassistant/components/azure_event_hub/config_flow.py index c789b85aebb..3573d5e72aa 100644 --- a/homeassistant/components/azure_event_hub/config_flow.py +++ b/homeassistant/components/azure_event_hub/config_flow.py @@ -84,7 +84,7 @@ class AEHConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION: int = 1 - def __init__(self): + def __init__(self) -> None: """Initialize the config flow.""" self._data: dict[str, Any] = {} self._options: dict[str, Any] = deepcopy(DEFAULT_OPTIONS) diff --git a/homeassistant/components/bbox/sensor.py b/homeassistant/components/bbox/sensor.py index 6dcc89dca02..4e89788ddae 100644 --- a/homeassistant/components/bbox/sensor.py +++ b/homeassistant/components/bbox/sensor.py @@ -184,7 +184,7 @@ class BboxSensor(SensorEntity): class BboxData: """Get data from the Bbox.""" - def __init__(self): + def __init__(self) -> None: """Initialize the data object.""" self.data = None self.router_infos = None diff --git a/homeassistant/components/blink/config_flow.py b/homeassistant/components/blink/config_flow.py index 30ef294f515..3fd1b7d91e5 100644 --- a/homeassistant/components/blink/config_flow.py +++ b/homeassistant/components/blink/config_flow.py @@ -72,7 +72,7 @@ class BlinkConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 3 - def __init__(self): + def __init__(self) -> None: """Initialize the blink flow.""" self.auth = None diff --git a/homeassistant/components/broadlink/config_flow.py b/homeassistant/components/broadlink/config_flow.py index 39c470ad77b..531119db6df 100644 --- a/homeassistant/components/broadlink/config_flow.py +++ b/homeassistant/components/broadlink/config_flow.py @@ -31,7 +31,7 @@ class BroadlinkFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize the Broadlink flow.""" self.device = None diff --git a/homeassistant/components/ecobee/config_flow.py b/homeassistant/components/ecobee/config_flow.py index ffef5798d1b..cce39a9ce92 100644 --- a/homeassistant/components/ecobee/config_flow.py +++ b/homeassistant/components/ecobee/config_flow.py @@ -20,7 +20,7 @@ class EcobeeFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize the ecobee flow.""" self._ecobee = None diff --git a/homeassistant/components/econet/config_flow.py b/homeassistant/components/econet/config_flow.py index eebfa066a92..d25ee7973fd 100644 --- a/homeassistant/components/econet/config_flow.py +++ b/homeassistant/components/econet/config_flow.py @@ -14,7 +14,7 @@ class EcoNetFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize the config flow.""" self.data_schema = vol.Schema( { diff --git a/homeassistant/components/enocean/config_flow.py b/homeassistant/components/enocean/config_flow.py index d4009e7c400..e47cb4c0589 100644 --- a/homeassistant/components/enocean/config_flow.py +++ b/homeassistant/components/enocean/config_flow.py @@ -15,7 +15,7 @@ class EnOceanFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 MANUAL_PATH_VALUE = "Custom path" - def __init__(self): + def __init__(self) -> None: """Initialize the EnOcean config flow.""" self.dongle_path = None self.discovery_info = None diff --git a/homeassistant/components/flume/config_flow.py b/homeassistant/components/flume/config_flow.py index 049b702dc3c..e31519738d1 100644 --- a/homeassistant/components/flume/config_flow.py +++ b/homeassistant/components/flume/config_flow.py @@ -83,7 +83,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Init flume config flow.""" self._reauth_unique_id = None diff --git a/homeassistant/components/forked_daapd/config_flow.py b/homeassistant/components/forked_daapd/config_flow.py index f9282dfc464..84ddbbc7f0e 100644 --- a/homeassistant/components/forked_daapd/config_flow.py +++ b/homeassistant/components/forked_daapd/config_flow.py @@ -104,7 +104,7 @@ class ForkedDaapdFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize.""" self.discovery_schema = None diff --git a/homeassistant/components/freebox/config_flow.py b/homeassistant/components/freebox/config_flow.py index f0a7801823e..fd9252aaa17 100644 --- a/homeassistant/components/freebox/config_flow.py +++ b/homeassistant/components/freebox/config_flow.py @@ -20,7 +20,7 @@ class FreeboxFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize Freebox config flow.""" self._host = None self._port = None diff --git a/homeassistant/components/hunterdouglas_powerview/shade_data.py b/homeassistant/components/hunterdouglas_powerview/shade_data.py index b66024aec7f..fab14b540b7 100644 --- a/homeassistant/components/hunterdouglas_powerview/shade_data.py +++ b/homeassistant/components/hunterdouglas_powerview/shade_data.py @@ -50,7 +50,7 @@ class PowerviewShadePositions: class PowerviewShadeData: """Coordinate shade data between multiple api calls.""" - def __init__(self): + def __init__(self) -> None: """Init the shade data.""" self._group_data_by_id: dict[int, dict[str | int, Any]] = {} self.positions: dict[int, PowerviewShadePositions] = {} diff --git a/homeassistant/components/intellifire/config_flow.py b/homeassistant/components/intellifire/config_flow.py index 91676724a8b..6a061b40bcc 100644 --- a/homeassistant/components/intellifire/config_flow.py +++ b/homeassistant/components/intellifire/config_flow.py @@ -51,7 +51,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize the Config Flow Handler.""" self._host: str = "" self._serial: str = "" diff --git a/homeassistant/components/ios/notify.py b/homeassistant/components/ios/notify.py index e9926c48181..519bb87d98a 100644 --- a/homeassistant/components/ios/notify.py +++ b/homeassistant/components/ios/notify.py @@ -66,7 +66,7 @@ def get_service( class iOSNotificationService(BaseNotificationService): """Implement the notification service for iOS.""" - def __init__(self): + def __init__(self) -> None: """Initialize the service.""" @property diff --git a/homeassistant/components/kodi/config_flow.py b/homeassistant/components/kodi/config_flow.py index ea1cf91b4c8..bd6d23e0f8e 100644 --- a/homeassistant/components/kodi/config_flow.py +++ b/homeassistant/components/kodi/config_flow.py @@ -89,7 +89,7 @@ class KodiConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize flow.""" self._host: str | None = None self._port: int | None = DEFAULT_PORT diff --git a/homeassistant/components/konnected/__init__.py b/homeassistant/components/konnected/__init__.py index f82bb17db62..bd629d53fc6 100644 --- a/homeassistant/components/konnected/__init__.py +++ b/homeassistant/components/konnected/__init__.py @@ -293,7 +293,7 @@ class KonnectedView(HomeAssistantView): name = "api:konnected" requires_auth = False # Uses access token from configuration - def __init__(self): + def __init__(self) -> None: """Initialize the view.""" @staticmethod diff --git a/homeassistant/components/logi_circle/config_flow.py b/homeassistant/components/logi_circle/config_flow.py index 7453fe27e18..ff7528ac9f6 100644 --- a/homeassistant/components/logi_circle/config_flow.py +++ b/homeassistant/components/logi_circle/config_flow.py @@ -59,7 +59,7 @@ class LogiCircleFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize flow.""" self.flow_impl = None diff --git a/homeassistant/components/london_air/sensor.py b/homeassistant/components/london_air/sensor.py index 6538c06d0ba..e970f040b5f 100644 --- a/homeassistant/components/london_air/sensor.py +++ b/homeassistant/components/london_air/sensor.py @@ -81,7 +81,7 @@ def setup_platform( class APIData: """Get the latest data for all authorities.""" - def __init__(self): + def __init__(self) -> None: """Initialize the AirData object.""" self.data = None diff --git a/homeassistant/components/myq/config_flow.py b/homeassistant/components/myq/config_flow.py index c26b54d7332..930d0014d1f 100644 --- a/homeassistant/components/myq/config_flow.py +++ b/homeassistant/components/myq/config_flow.py @@ -26,7 +26,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Start a myq config flow.""" self._reauth_unique_id = None diff --git a/homeassistant/components/netgear/config_flow.py b/homeassistant/components/netgear/config_flow.py index 9024d0510dd..9516314431a 100644 --- a/homeassistant/components/netgear/config_flow.py +++ b/homeassistant/components/netgear/config_flow.py @@ -86,7 +86,7 @@ class NetgearFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize the netgear config flow.""" self.placeholders = { CONF_HOST: DEFAULT_HOST, diff --git a/homeassistant/components/ovo_energy/config_flow.py b/homeassistant/components/ovo_energy/config_flow.py index 227182e5f99..69fab07829f 100644 --- a/homeassistant/components/ovo_energy/config_flow.py +++ b/homeassistant/components/ovo_energy/config_flow.py @@ -29,7 +29,7 @@ class OVOEnergyFlowHandler(ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize the flow.""" self.username = None self.account = None diff --git a/homeassistant/components/panasonic_viera/config_flow.py b/homeassistant/components/panasonic_viera/config_flow.py index d1c6461de21..38b6a351f29 100644 --- a/homeassistant/components/panasonic_viera/config_flow.py +++ b/homeassistant/components/panasonic_viera/config_flow.py @@ -30,7 +30,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize the Panasonic Viera config flow.""" self._data = { CONF_HOST: None, diff --git a/homeassistant/components/point/config_flow.py b/homeassistant/components/point/config_flow.py index 994047a2758..fad5b746252 100644 --- a/homeassistant/components/point/config_flow.py +++ b/homeassistant/components/point/config_flow.py @@ -46,7 +46,7 @@ class PointFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize flow.""" self.flow_impl = None diff --git a/homeassistant/components/poolsense/config_flow.py b/homeassistant/components/poolsense/config_flow.py index 7ab9691d134..6a6708b4045 100644 --- a/homeassistant/components/poolsense/config_flow.py +++ b/homeassistant/components/poolsense/config_flow.py @@ -18,7 +18,7 @@ class PoolSenseConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize PoolSense config flow.""" async def async_step_user(self, user_input=None): diff --git a/homeassistant/components/progettihwsw/config_flow.py b/homeassistant/components/progettihwsw/config_flow.py index 5b996fd5eb4..9b4fc16c8c4 100644 --- a/homeassistant/components/progettihwsw/config_flow.py +++ b/homeassistant/components/progettihwsw/config_flow.py @@ -34,7 +34,7 @@ class ProgettiHWSWConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize class variables.""" self.s1_in = None diff --git a/homeassistant/components/radiotherm/config_flow.py b/homeassistant/components/radiotherm/config_flow.py index 97ae2c1be0a..a3acc2e4389 100644 --- a/homeassistant/components/radiotherm/config_flow.py +++ b/homeassistant/components/radiotherm/config_flow.py @@ -39,7 +39,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize ConfigFlow.""" self.discovered_ip: str | None = None self.discovered_init_data: RadioThermInitData | None = None diff --git a/homeassistant/components/sia/config_flow.py b/homeassistant/components/sia/config_flow.py index 516018c43a7..cbcb60a4565 100644 --- a/homeassistant/components/sia/config_flow.py +++ b/homeassistant/components/sia/config_flow.py @@ -100,7 +100,7 @@ class SIAConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): """Get the options flow for this handler.""" return SIAOptionsFlowHandler(config_entry) - def __init__(self): + def __init__(self) -> None: """Initialize the config flow.""" self._data: dict[str, Any] = {} self._options: Mapping[str, Any] = {CONF_ACCOUNTS: {}} diff --git a/homeassistant/components/smartthings/config_flow.py b/homeassistant/components/smartthings/config_flow.py index 336eb99f6ee..0328c3a7f8e 100644 --- a/homeassistant/components/smartthings/config_flow.py +++ b/homeassistant/components/smartthings/config_flow.py @@ -40,7 +40,7 @@ class SmartThingsFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 2 - def __init__(self): + def __init__(self) -> None: """Create a new instance of the flow handler.""" self.access_token = None self.app_id = None diff --git a/homeassistant/components/soma/config_flow.py b/homeassistant/components/soma/config_flow.py index a29b1b9bf9b..ca6f1fabf30 100644 --- a/homeassistant/components/soma/config_flow.py +++ b/homeassistant/components/soma/config_flow.py @@ -20,7 +20,7 @@ class SomaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Instantiate config flow.""" async def async_step_user(self, user_input=None): diff --git a/homeassistant/components/songpal/config_flow.py b/homeassistant/components/songpal/config_flow.py index 10737127e0b..a1e7938f3f8 100644 --- a/homeassistant/components/songpal/config_flow.py +++ b/homeassistant/components/songpal/config_flow.py @@ -32,7 +32,7 @@ class SongpalConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize the flow.""" self.conf: SongpalConfig | None = None diff --git a/homeassistant/components/spider/config_flow.py b/homeassistant/components/spider/config_flow.py index 7b31acb453d..eaf30bc541f 100644 --- a/homeassistant/components/spider/config_flow.py +++ b/homeassistant/components/spider/config_flow.py @@ -25,7 +25,7 @@ class SpiderConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize the Spider flow.""" self.data = { CONF_USERNAME: "", diff --git a/homeassistant/components/squeezebox/config_flow.py b/homeassistant/components/squeezebox/config_flow.py index 7a5d874c5bb..1411b8bc782 100644 --- a/homeassistant/components/squeezebox/config_flow.py +++ b/homeassistant/components/squeezebox/config_flow.py @@ -60,7 +60,7 @@ class SqueezeboxConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize an instance of the squeezebox config flow.""" self.data_schema = _base_schema() self.discovery_info = None diff --git a/homeassistant/components/starline/config_flow.py b/homeassistant/components/starline/config_flow.py index 8a5aa494a5f..a00e24ca2a6 100644 --- a/homeassistant/components/starline/config_flow.py +++ b/homeassistant/components/starline/config_flow.py @@ -29,7 +29,7 @@ class StarlineFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize flow.""" self._app_id: str | None = None self._app_secret: str | None = None diff --git a/homeassistant/components/switchbot/config_flow.py b/homeassistant/components/switchbot/config_flow.py index 933d8ac3c56..1374e93326c 100644 --- a/homeassistant/components/switchbot/config_flow.py +++ b/homeassistant/components/switchbot/config_flow.py @@ -71,7 +71,7 @@ class SwitchbotConfigFlow(ConfigFlow, domain=DOMAIN): """Get the options flow for this handler.""" return SwitchbotOptionsFlowHandler(config_entry) - def __init__(self): + def __init__(self) -> None: """Initialize the config flow.""" self._discovered_adv: SwitchBotAdvertisement | None = None self._discovered_advs: dict[str, SwitchBotAdvertisement] = {} diff --git a/homeassistant/components/system_bridge/config_flow.py b/homeassistant/components/system_bridge/config_flow.py index 995df6391cc..46914c0ea15 100644 --- a/homeassistant/components/system_bridge/config_flow.py +++ b/homeassistant/components/system_bridge/config_flow.py @@ -116,7 +116,7 @@ class ConfigFlow( VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize flow.""" self._name: str | None = None self._input: dict[str, Any] = {} diff --git a/homeassistant/components/tellduslive/config_flow.py b/homeassistant/components/tellduslive/config_flow.py index 18bbe59a25f..a181bce11f2 100644 --- a/homeassistant/components/tellduslive/config_flow.py +++ b/homeassistant/components/tellduslive/config_flow.py @@ -34,7 +34,7 @@ class FlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Init config flow.""" self._hosts = [CLOUD_NAME] self._host = None diff --git a/homeassistant/components/upb/config_flow.py b/homeassistant/components/upb/config_flow.py index c920fa405ef..4a3d970a068 100644 --- a/homeassistant/components/upb/config_flow.py +++ b/homeassistant/components/upb/config_flow.py @@ -75,7 +75,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize the UPB config flow.""" self.importing = False diff --git a/homeassistant/components/vesync/config_flow.py b/homeassistant/components/vesync/config_flow.py index d9cd1bfc648..3f469d5eb81 100644 --- a/homeassistant/components/vesync/config_flow.py +++ b/homeassistant/components/vesync/config_flow.py @@ -16,7 +16,7 @@ class VeSyncFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Instantiate config flow.""" self._username = None self._password = None diff --git a/homeassistant/components/volumio/config_flow.py b/homeassistant/components/volumio/config_flow.py index f9703e3c2fb..f2b5c7e796c 100644 --- a/homeassistant/components/volumio/config_flow.py +++ b/homeassistant/components/volumio/config_flow.py @@ -38,7 +38,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize flow.""" self._host: str | None = None self._port: int | None = None diff --git a/homeassistant/components/vulcan/config_flow.py b/homeassistant/components/vulcan/config_flow.py index 6c873194124..4547e6dd31e 100644 --- a/homeassistant/components/vulcan/config_flow.py +++ b/homeassistant/components/vulcan/config_flow.py @@ -38,7 +38,7 @@ class VulcanFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize config flow.""" self.account = None self.keystore = None diff --git a/homeassistant/components/wolflink/config_flow.py b/homeassistant/components/wolflink/config_flow.py index 491b7a1232d..63331fdbbd1 100644 --- a/homeassistant/components/wolflink/config_flow.py +++ b/homeassistant/components/wolflink/config_flow.py @@ -23,7 +23,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): VERSION = 1 - def __init__(self): + def __init__(self) -> None: """Initialize with empty username and password.""" self.username = None self.password = None diff --git a/homeassistant/components/zha/core/registries.py b/homeassistant/components/zha/core/registries.py index 206b634b0a6..6b99d412688 100644 --- a/homeassistant/components/zha/core/registries.py +++ b/homeassistant/components/zha/core/registries.py @@ -235,7 +235,7 @@ class EntityClassAndChannels: class ZHAEntityRegistry: """Channel to ZHA Entity mapping.""" - def __init__(self): + def __init__(self) -> None: """Initialize Registry instance.""" self._strict_registry: dict[ str, dict[MatchRule, type[ZhaEntity]]