diff --git a/homeassistant/components/omnilogic/common.py b/homeassistant/components/omnilogic/common.py index a4e8d4f491e..a103b8d112c 100644 --- a/homeassistant/components/omnilogic/common.py +++ b/homeassistant/components/omnilogic/common.py @@ -35,7 +35,7 @@ class OmniLogicUpdateCoordinator(DataUpdateCoordinator): name: str, config_entry: ConfigEntry, polling_interval: int, - ): + ) -> None: """Initialize the global Omnilogic data updater.""" self.api = api self.config_entry = config_entry @@ -89,7 +89,7 @@ class OmniLogicEntity(CoordinatorEntity): name: str, item_id: tuple, icon: str, - ): + ) -> None: """Initialize the OmniLogic Entity.""" super().__init__(coordinator) diff --git a/homeassistant/components/omnilogic/sensor.py b/homeassistant/components/omnilogic/sensor.py index 60ca685a2f8..beec071b192 100644 --- a/homeassistant/components/omnilogic/sensor.py +++ b/homeassistant/components/omnilogic/sensor.py @@ -61,7 +61,7 @@ class OmnilogicSensor(OmniLogicEntity, SensorEntity): unit: str, item_id: tuple, state_key: str, - ): + ) -> None: """Initialize Entities.""" super().__init__( coordinator=coordinator, @@ -217,7 +217,7 @@ class OmniLogicORPSensor(OmnilogicSensor): device_class: str, icon: str, unit: str, - ): + ) -> None: """Initialize the sensor.""" super().__init__( coordinator=coordinator, diff --git a/homeassistant/components/omnilogic/switch.py b/homeassistant/components/omnilogic/switch.py index b6fec2e9f25..771b02a24c1 100644 --- a/homeassistant/components/omnilogic/switch.py +++ b/homeassistant/components/omnilogic/switch.py @@ -67,7 +67,7 @@ class OmniLogicSwitch(OmniLogicEntity, SwitchEntity): icon: str, item_id: tuple, state_key: str, - ): + ) -> None: """Initialize Entities.""" super().__init__( coordinator=coordinator, @@ -142,7 +142,7 @@ class OmniLogicPumpControl(OmniLogicSwitch): icon: str, item_id: tuple, state_key: str, - ): + ) -> None: """Initialize entities.""" super().__init__( coordinator=coordinator, diff --git a/homeassistant/components/ondilo_ico/api.py b/homeassistant/components/ondilo_ico/api.py index e753f8d6dcb..f698dcc693e 100644 --- a/homeassistant/components/ondilo_ico/api.py +++ b/homeassistant/components/ondilo_ico/api.py @@ -18,7 +18,7 @@ class OndiloClient(Ondilo): hass: core.HomeAssistant, config_entry: config_entries.ConfigEntry, implementation: config_entry_oauth2_flow.AbstractOAuth2Implementation, - ): + ) -> None: """Initialize Ondilo ICO Auth.""" self.hass = hass self.config_entry = config_entry diff --git a/homeassistant/components/ondilo_ico/oauth_impl.py b/homeassistant/components/ondilo_ico/oauth_impl.py index d6072cd6f6f..e1c6e6fdb90 100644 --- a/homeassistant/components/ondilo_ico/oauth_impl.py +++ b/homeassistant/components/ondilo_ico/oauth_impl.py @@ -15,7 +15,7 @@ from .const import ( class OndiloOauth2Implementation(LocalOAuth2Implementation): """Local implementation of OAuth2 specific to Ondilo to hard code client id and secret and return a proper name.""" - def __init__(self, hass: HomeAssistant): + def __init__(self, hass: HomeAssistant) -> None: """Just init default class with default values.""" super().__init__( hass, diff --git a/homeassistant/components/ondilo_ico/sensor.py b/homeassistant/components/ondilo_ico/sensor.py index 3af2bb7c326..2428862cb31 100644 --- a/homeassistant/components/ondilo_ico/sensor.py +++ b/homeassistant/components/ondilo_ico/sensor.py @@ -89,7 +89,7 @@ class OndiloICO(CoordinatorEntity, SensorEntity): def __init__( self, coordinator: DataUpdateCoordinator, poolidx: int, sensor_idx: int - ): + ) -> None: """Initialize sensor entity with data from coordinator.""" super().__init__(coordinator) diff --git a/homeassistant/components/onewire/onewire_entities.py b/homeassistant/components/onewire/onewire_entities.py index 0182f86f6de..b60d06739e8 100644 --- a/homeassistant/components/onewire/onewire_entities.py +++ b/homeassistant/components/onewire/onewire_entities.py @@ -33,7 +33,7 @@ class OneWireBaseEntity(Entity): device_info: DeviceInfo, default_disabled: bool, unique_id: str, - ): + ) -> None: """Initialize the entity.""" self._name = f"{name} {entity_name or entity_type.capitalize()}" self._device_file = device_file @@ -88,7 +88,7 @@ class OneWireProxyEntity(OneWireBaseEntity): entity_path: str, entity_specs: DeviceComponentDescription, owproxy: protocol._Proxy, - ): + ) -> None: """Initialize the sensor.""" super().__init__( name=device_name, diff --git a/homeassistant/components/onewire/onewirehub.py b/homeassistant/components/onewire/onewirehub.py index 68ee0af85aa..26d08594055 100644 --- a/homeassistant/components/onewire/onewirehub.py +++ b/homeassistant/components/onewire/onewirehub.py @@ -23,7 +23,7 @@ DEVICE_COUPLERS = { class OneWireHub: """Hub to communicate with SysBus or OWServer.""" - def __init__(self, hass: HomeAssistant): + def __init__(self, hass: HomeAssistant) -> None: """Initialize.""" self.hass = hass self.type: str | None = None diff --git a/homeassistant/components/onvif/device.py b/homeassistant/components/onvif/device.py index 826ff4b1a29..e8428696bfc 100644 --- a/homeassistant/components/onvif/device.py +++ b/homeassistant/components/onvif/device.py @@ -41,7 +41,7 @@ from .models import PTZ, Capabilities, DeviceInfo, Profile, Resolution, Video class ONVIFDevice: """Manages an ONVIF device.""" - def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry = None): + def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry = None) -> None: """Initialize the device.""" self.hass: HomeAssistant = hass self.config_entry: ConfigEntry = config_entry diff --git a/homeassistant/components/onvif/event.py b/homeassistant/components/onvif/event.py index 76b18d729a8..a45cc02c84b 100644 --- a/homeassistant/components/onvif/event.py +++ b/homeassistant/components/onvif/event.py @@ -29,7 +29,9 @@ SUBSCRIPTION_ERRORS = ( class EventManager: """ONVIF Event Manager.""" - def __init__(self, hass: HomeAssistant, device: ONVIFCamera, unique_id: str): + def __init__( + self, hass: HomeAssistant, device: ONVIFCamera, unique_id: str + ) -> None: """Initialize event manager.""" self.hass: HomeAssistant = hass self.device: ONVIFCamera = device diff --git a/homeassistant/components/ovo_energy/sensor.py b/homeassistant/components/ovo_energy/sensor.py index adc62906e65..7615a7011d3 100644 --- a/homeassistant/components/ovo_energy/sensor.py +++ b/homeassistant/components/ovo_energy/sensor.py @@ -80,7 +80,7 @@ class OVOEnergySensor(OVOEnergyDeviceEntity, SensorEntity): class OVOEnergyLastElectricityReading(OVOEnergySensor): """Defines a OVO Energy last reading sensor.""" - def __init__(self, coordinator: DataUpdateCoordinator, client: OVOEnergy): + def __init__(self, coordinator: DataUpdateCoordinator, client: OVOEnergy) -> None: """Initialize OVO Energy sensor.""" super().__init__( @@ -115,7 +115,7 @@ class OVOEnergyLastElectricityReading(OVOEnergySensor): class OVOEnergyLastGasReading(OVOEnergySensor): """Defines a OVO Energy last reading sensor.""" - def __init__(self, coordinator: DataUpdateCoordinator, client: OVOEnergy): + def __init__(self, coordinator: DataUpdateCoordinator, client: OVOEnergy) -> None: """Initialize OVO Energy sensor.""" super().__init__( @@ -152,7 +152,7 @@ class OVOEnergyLastElectricityCost(OVOEnergySensor): def __init__( self, coordinator: DataUpdateCoordinator, client: OVOEnergy, currency: str - ): + ) -> None: """Initialize OVO Energy sensor.""" super().__init__( coordinator, @@ -188,7 +188,7 @@ class OVOEnergyLastGasCost(OVOEnergySensor): def __init__( self, coordinator: DataUpdateCoordinator, client: OVOEnergy, currency: str - ): + ) -> None: """Initialize OVO Energy sensor.""" super().__init__( coordinator, diff --git a/homeassistant/components/person/__init__.py b/homeassistant/components/person/__init__.py index 86f50367fd4..7641a75e9c6 100644 --- a/homeassistant/components/person/__init__.py +++ b/homeassistant/components/person/__init__.py @@ -168,7 +168,7 @@ class PersonStorageCollection(collection.StorageCollection): logger: logging.Logger, id_manager: collection.IDManager, yaml_collection: collection.YamlCollection, - ): + ) -> None: """Initialize a person storage collection.""" super().__init__(store, logger, id_manager) self.yaml_collection = yaml_collection diff --git a/homeassistant/components/philips_js/__init__.py b/homeassistant/components/philips_js/__init__.py index cc78402dda9..f21337f512e 100644 --- a/homeassistant/components/philips_js/__init__.py +++ b/homeassistant/components/philips_js/__init__.py @@ -60,7 +60,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry): class PluggableAction: """A pluggable action handler.""" - def __init__(self, update: Callable[[], None]): + def __init__(self, update: Callable[[], None]) -> None: """Initialize.""" self._update = update self._actions: dict[Any, AutomationActionType] = {} diff --git a/homeassistant/components/philips_js/media_player.py b/homeassistant/components/philips_js/media_player.py index 60862d8eded..61aa97a66b1 100644 --- a/homeassistant/components/philips_js/media_player.py +++ b/homeassistant/components/philips_js/media_player.py @@ -128,7 +128,7 @@ class PhilipsTVMediaPlayer(CoordinatorEntity, MediaPlayerEntity): coordinator: PhilipsTVDataUpdateCoordinator, system: dict[str, Any], unique_id: str, - ): + ) -> None: """Initialize the Philips TV.""" self._tv = coordinator.api self._coordinator = coordinator diff --git a/homeassistant/components/philips_js/remote.py b/homeassistant/components/philips_js/remote.py index f4d34904f1b..98ecab96fd4 100644 --- a/homeassistant/components/philips_js/remote.py +++ b/homeassistant/components/philips_js/remote.py @@ -37,7 +37,7 @@ class PhilipsTVRemote(RemoteEntity): coordinator: PhilipsTVDataUpdateCoordinator, system: SystemType, unique_id: str, - ): + ) -> None: """Initialize the Philips TV.""" self._tv = coordinator.api self._coordinator = coordinator diff --git a/homeassistant/components/picnic/coordinator.py b/homeassistant/components/picnic/coordinator.py index a4660344aaf..bcd4e79a098 100644 --- a/homeassistant/components/picnic/coordinator.py +++ b/homeassistant/components/picnic/coordinator.py @@ -24,7 +24,7 @@ class PicnicUpdateCoordinator(DataUpdateCoordinator): hass: HomeAssistant, picnic_api_client: PicnicAPI, config_entry: ConfigEntry, - ): + ) -> None: """Initialize the coordinator with the given Picnic API client.""" self.picnic_api_client = picnic_api_client self.config_entry = config_entry diff --git a/homeassistant/components/plaato/config_flow.py b/homeassistant/components/plaato/config_flow.py index b1d81db1de5..79a4657c312 100644 --- a/homeassistant/components/plaato/config_flow.py +++ b/homeassistant/components/plaato/config_flow.py @@ -171,7 +171,7 @@ class PlaatoConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): class PlaatoOptionsFlowHandler(config_entries.OptionsFlow): """Handle Plaato options.""" - def __init__(self, config_entry: ConfigEntry): + def __init__(self, config_entry: ConfigEntry) -> None: """Initialize domain options flow.""" super().__init__() diff --git a/homeassistant/components/rachio/config_flow.py b/homeassistant/components/rachio/config_flow.py index b664ebcd45d..ee03d042ec2 100644 --- a/homeassistant/components/rachio/config_flow.py +++ b/homeassistant/components/rachio/config_flow.py @@ -96,7 +96,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): class OptionsFlowHandler(config_entries.OptionsFlow): """Handle a option flow for Rachio.""" - def __init__(self, config_entry: config_entries.ConfigEntry): + def __init__(self, config_entry: config_entries.ConfigEntry) -> None: """Initialize options flow.""" self.config_entry = config_entry diff --git a/homeassistant/components/recollect_waste/config_flow.py b/homeassistant/components/recollect_waste/config_flow.py index 1a53eb78d5e..9919c2653a8 100644 --- a/homeassistant/components/recollect_waste/config_flow.py +++ b/homeassistant/components/recollect_waste/config_flow.py @@ -73,7 +73,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): class RecollectWasteOptionsFlowHandler(config_entries.OptionsFlow): """Handle a Recollect Waste options flow.""" - def __init__(self, entry: config_entries.ConfigEntry): + def __init__(self, entry: config_entries.ConfigEntry) -> None: """Initialize.""" self._entry = entry diff --git a/homeassistant/components/ring/__init__.py b/homeassistant/components/ring/__init__.py index a0d07d0a878..a8196b30302 100644 --- a/homeassistant/components/ring/__init__.py +++ b/homeassistant/components/ring/__init__.py @@ -146,7 +146,7 @@ class GlobalDataUpdater: ring: Ring, update_method: str, update_interval: timedelta, - ): + ) -> None: """Initialize global data updater.""" self.hass = hass self.data_type = data_type @@ -219,7 +219,7 @@ class DeviceDataUpdater: ring: Ring, update_method: str, update_interval: timedelta, - ): + ) -> None: """Initialize device data updater.""" self.data_type = data_type self.hass = hass diff --git a/homeassistant/components/rituals_perfume_genie/__init__.py b/homeassistant/components/rituals_perfume_genie/__init__.py index 1906478cbd2..65c1a2dd97c 100644 --- a/homeassistant/components/rituals_perfume_genie/__init__.py +++ b/homeassistant/components/rituals_perfume_genie/__init__.py @@ -64,7 +64,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry): class RitualsDataUpdateCoordinator(DataUpdateCoordinator): """Class to manage fetching Rituals Perufme Genie device data from single endpoint.""" - def __init__(self, hass: HomeAssistant, device: Diffuser): + def __init__(self, hass: HomeAssistant, device: Diffuser) -> None: """Initialize global Rituals Perufme Genie data updater.""" self._device = device super().__init__( diff --git a/homeassistant/components/roku/__init__.py b/homeassistant/components/roku/__init__.py index 6b7f3237d1e..e81f5260ac1 100644 --- a/homeassistant/components/roku/__init__.py +++ b/homeassistant/components/roku/__init__.py @@ -85,7 +85,7 @@ class RokuDataUpdateCoordinator(DataUpdateCoordinator[Device]): hass: HomeAssistant, *, host: str, - ): + ) -> None: """Initialize global Roku data updater.""" self.roku = Roku(host=host, session=async_get_clientsession(hass)) diff --git a/homeassistant/components/ruckus_unleashed/coordinator.py b/homeassistant/components/ruckus_unleashed/coordinator.py index 1e145a19c74..8b80eaae0da 100644 --- a/homeassistant/components/ruckus_unleashed/coordinator.py +++ b/homeassistant/components/ruckus_unleashed/coordinator.py @@ -22,7 +22,7 @@ _LOGGER = logging.getLogger(__package__) class RuckusUnleashedDataUpdateCoordinator(DataUpdateCoordinator): """Coordinator to manage data from Ruckus Unleashed client.""" - def __init__(self, hass: HomeAssistant, *, ruckus: Ruckus): + def __init__(self, hass: HomeAssistant, *, ruckus: Ruckus) -> None: """Initialize global Ruckus Unleashed data updater.""" self.ruckus = ruckus diff --git a/homeassistant/components/screenlogic/config_flow.py b/homeassistant/components/screenlogic/config_flow.py index c9b13a586ef..1fc01a2e854 100644 --- a/homeassistant/components/screenlogic/config_flow.py +++ b/homeassistant/components/screenlogic/config_flow.py @@ -188,7 +188,7 @@ class ScreenlogicConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): class ScreenLogicOptionsFlowHandler(config_entries.OptionsFlow): """Handles the options for the ScreenLogic integration.""" - def __init__(self, config_entry: config_entries.ConfigEntry): + def __init__(self, config_entry: config_entries.ConfigEntry) -> None: """Init the screen logic options flow.""" self.config_entry = config_entry diff --git a/homeassistant/components/search/__init__.py b/homeassistant/components/search/__init__.py index 3198f40720b..db97410469f 100644 --- a/homeassistant/components/search/__init__.py +++ b/homeassistant/components/search/__init__.py @@ -69,7 +69,7 @@ class Searcher: hass: HomeAssistant, device_reg: device_registry.DeviceRegistry, entity_reg: entity_registry.EntityRegistry, - ): + ) -> None: """Search results.""" self.hass = hass self._device_reg = device_reg diff --git a/homeassistant/components/sentry/config_flow.py b/homeassistant/components/sentry/config_flow.py index bcb540a1687..4fe2b0cc503 100644 --- a/homeassistant/components/sentry/config_flow.py +++ b/homeassistant/components/sentry/config_flow.py @@ -73,7 +73,7 @@ class SentryConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): class SentryOptionsFlow(config_entries.OptionsFlow): """Handle Sentry options.""" - def __init__(self, config_entry: config_entries.ConfigEntry): + def __init__(self, config_entry: config_entries.ConfigEntry) -> None: """Initialize Sentry options flow.""" self.config_entry = config_entry diff --git a/homeassistant/components/sharkiq/vacuum.py b/homeassistant/components/sharkiq/vacuum.py index 09dc4ec3efb..4ecdf217abc 100644 --- a/homeassistant/components/sharkiq/vacuum.py +++ b/homeassistant/components/sharkiq/vacuum.py @@ -83,7 +83,9 @@ async def async_setup_entry(hass, config_entry, async_add_entities): class SharkVacuumEntity(CoordinatorEntity, StateVacuumEntity): """Shark IQ vacuum entity.""" - def __init__(self, sharkiq: SharkIqVacuum, coordinator: SharkIqUpdateCoordinator): + def __init__( + self, sharkiq: SharkIqVacuum, coordinator: SharkIqUpdateCoordinator + ) -> None: """Create a new SharkVacuumEntity.""" super().__init__(coordinator) self.sharkiq = sharkiq diff --git a/homeassistant/components/smappee/api.py b/homeassistant/components/smappee/api.py index 8de1d4cfec5..f12f53ff27f 100644 --- a/homeassistant/components/smappee/api.py +++ b/homeassistant/components/smappee/api.py @@ -18,7 +18,7 @@ class ConfigEntrySmappeeApi(api.SmappeeApi): hass: core.HomeAssistant, config_entry: config_entries.ConfigEntry, implementation: config_entry_oauth2_flow.AbstractOAuth2Implementation, - ): + ) -> None: """Initialize Smappee Auth.""" self.hass = hass self.config_entry = config_entry diff --git a/homeassistant/components/smart_meter_texas/__init__.py b/homeassistant/components/smart_meter_texas/__init__.py index 1fc3eb218a7..82a8ccb354b 100644 --- a/homeassistant/components/smart_meter_texas/__init__.py +++ b/homeassistant/components/smart_meter_texas/__init__.py @@ -86,7 +86,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): class SmartMeterTexasData: """Manages coordinatation of API data updates.""" - def __init__(self, hass: HomeAssistant, entry: ConfigEntry, account: Account): + def __init__( + self, hass: HomeAssistant, entry: ConfigEntry, account: Account + ) -> None: """Initialize the data coordintator.""" self._entry = entry self.account = account diff --git a/homeassistant/components/smart_meter_texas/sensor.py b/homeassistant/components/smart_meter_texas/sensor.py index 54e5969f8ea..13e93fe362b 100644 --- a/homeassistant/components/smart_meter_texas/sensor.py +++ b/homeassistant/components/smart_meter_texas/sensor.py @@ -33,7 +33,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): class SmartMeterTexasSensor(CoordinatorEntity, RestoreEntity, SensorEntity): """Representation of an Smart Meter Texas sensor.""" - def __init__(self, meter: Meter, coordinator: DataUpdateCoordinator): + def __init__(self, meter: Meter, coordinator: DataUpdateCoordinator) -> None: """Initialize the sensor.""" super().__init__(coordinator) self.meter = meter diff --git a/homeassistant/components/somfy/api.py b/homeassistant/components/somfy/api.py index 43db2c29060..bfa834cddb2 100644 --- a/homeassistant/components/somfy/api.py +++ b/homeassistant/components/somfy/api.py @@ -17,7 +17,7 @@ class ConfigEntrySomfyApi(somfy_api.SomfyApi): hass: core.HomeAssistant, config_entry: config_entries.ConfigEntry, implementation: config_entry_oauth2_flow.AbstractOAuth2Implementation, - ): + ) -> None: """Initialize the Config Entry Somfy API.""" self.hass = hass self.config_entry = config_entry diff --git a/homeassistant/components/somfy_mylink/config_flow.py b/homeassistant/components/somfy_mylink/config_flow.py index 88185629b27..aac04a34a9a 100644 --- a/homeassistant/components/somfy_mylink/config_flow.py +++ b/homeassistant/components/somfy_mylink/config_flow.py @@ -119,7 +119,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): class OptionsFlowHandler(config_entries.OptionsFlow): """Handle a option flow for somfy_mylink.""" - def __init__(self, config_entry: config_entries.ConfigEntry): + def __init__(self, config_entry: config_entries.ConfigEntry) -> None: """Initialize options flow.""" self.config_entry = config_entry self.options = deepcopy(dict(config_entry.options)) diff --git a/homeassistant/components/spotify/media_player.py b/homeassistant/components/spotify/media_player.py index a30868fe913..e9ae2367273 100644 --- a/homeassistant/components/spotify/media_player.py +++ b/homeassistant/components/spotify/media_player.py @@ -233,7 +233,7 @@ class SpotifyMediaPlayer(MediaPlayerEntity): me: dict, user_id: str, name: str, - ): + ) -> None: """Initialize.""" self._id = user_id self._me = me diff --git a/homeassistant/components/starline/account.py b/homeassistant/components/starline/account.py index fc7be6582a7..8af9940370e 100644 --- a/homeassistant/components/starline/account.py +++ b/homeassistant/components/starline/account.py @@ -26,7 +26,7 @@ from .const import ( class StarlineAccount: """StarLine Account class.""" - def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry): + def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry) -> None: """Initialize StarLine account.""" self._hass: HomeAssistant = hass self._config_entry: ConfigEntry = config_entry diff --git a/homeassistant/components/starline/binary_sensor.py b/homeassistant/components/starline/binary_sensor.py index df9bd348b8d..3468d141cf6 100644 --- a/homeassistant/components/starline/binary_sensor.py +++ b/homeassistant/components/starline/binary_sensor.py @@ -43,7 +43,7 @@ class StarlineSensor(StarlineEntity, BinarySensorEntity): key: str, name: str, device_class: str, - ): + ) -> None: """Initialize sensor.""" super().__init__(account, device, key, name) self._device_class = device_class diff --git a/homeassistant/components/starline/device_tracker.py b/homeassistant/components/starline/device_tracker.py index 59b9f5b4f95..04e18bce8fb 100644 --- a/homeassistant/components/starline/device_tracker.py +++ b/homeassistant/components/starline/device_tracker.py @@ -21,7 +21,7 @@ async def async_setup_entry(hass, entry, async_add_entities): class StarlineDeviceTracker(StarlineEntity, TrackerEntity, RestoreEntity): """StarLine device tracker.""" - def __init__(self, account: StarlineAccount, device: StarlineDevice): + def __init__(self, account: StarlineAccount, device: StarlineDevice) -> None: """Set up StarLine entity.""" super().__init__(account, device, "location", "Location") diff --git a/homeassistant/components/starline/entity.py b/homeassistant/components/starline/entity.py index 9b81481b9d1..b48816e1a7c 100644 --- a/homeassistant/components/starline/entity.py +++ b/homeassistant/components/starline/entity.py @@ -13,7 +13,7 @@ class StarlineEntity(Entity): def __init__( self, account: StarlineAccount, device: StarlineDevice, key: str, name: str - ): + ) -> None: """Initialize StarLine entity.""" self._account = account self._device = device diff --git a/homeassistant/components/starline/lock.py b/homeassistant/components/starline/lock.py index f19fa4896ba..8ed6de0497d 100644 --- a/homeassistant/components/starline/lock.py +++ b/homeassistant/components/starline/lock.py @@ -21,7 +21,7 @@ async def async_setup_entry(hass, entry, async_add_entities): class StarlineLock(StarlineEntity, LockEntity): """Representation of a StarLine lock.""" - def __init__(self, account: StarlineAccount, device: StarlineDevice): + def __init__(self, account: StarlineAccount, device: StarlineDevice) -> None: """Initialize the lock.""" super().__init__(account, device, "lock", "Security") diff --git a/homeassistant/components/starline/sensor.py b/homeassistant/components/starline/sensor.py index 29deacee428..4cb470be894 100644 --- a/homeassistant/components/starline/sensor.py +++ b/homeassistant/components/starline/sensor.py @@ -49,7 +49,7 @@ class StarlineSensor(StarlineEntity, SensorEntity): device_class: str, unit: str, icon: str, - ): + ) -> None: """Initialize StarLine sensor.""" super().__init__(account, device, key, name) self._device_class = device_class diff --git a/homeassistant/components/starline/switch.py b/homeassistant/components/starline/switch.py index b3214390a44..c8afc41cb2d 100644 --- a/homeassistant/components/starline/switch.py +++ b/homeassistant/components/starline/switch.py @@ -41,7 +41,7 @@ class StarlineSwitch(StarlineEntity, SwitchEntity): name: str, icon_on: str, icon_off: str, - ): + ) -> None: """Initialize the switch.""" super().__init__(account, device, key, name) self._icon_on = icon_on diff --git a/homeassistant/components/stream/core.py b/homeassistant/components/stream/core.py index ae96d80af0b..a289464f92b 100644 --- a/homeassistant/components/stream/core.py +++ b/homeassistant/components/stream/core.py @@ -53,7 +53,7 @@ class IdleTimer: def __init__( self, hass: HomeAssistant, timeout: int, idle_callback: Callable[[], None] - ): + ) -> None: """Initialize IdleTimer.""" self._hass = hass self._timeout = timeout diff --git a/homeassistant/components/subaru/config_flow.py b/homeassistant/components/subaru/config_flow.py index 0c41a478c04..f21abbdb56f 100644 --- a/homeassistant/components/subaru/config_flow.py +++ b/homeassistant/components/subaru/config_flow.py @@ -133,7 +133,7 @@ class SubaruConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): class OptionsFlowHandler(config_entries.OptionsFlow): """Handle a option flow for Subaru.""" - def __init__(self, config_entry: config_entries.ConfigEntry): + def __init__(self, config_entry: config_entries.ConfigEntry) -> None: """Initialize options flow.""" self.config_entry = config_entry diff --git a/homeassistant/components/surepetcare/binary_sensor.py b/homeassistant/components/surepetcare/binary_sensor.py index 5f6a82839e1..fd75264ee27 100644 --- a/homeassistant/components/surepetcare/binary_sensor.py +++ b/homeassistant/components/surepetcare/binary_sensor.py @@ -62,7 +62,7 @@ class SurePetcareBinarySensor(BinarySensorEntity): spc: SurePetcareAPI, device_class: str, sure_type: EntityType, - ): + ) -> None: """Initialize a Sure Petcare binary sensor.""" self._id = _id diff --git a/homeassistant/components/surepetcare/sensor.py b/homeassistant/components/surepetcare/sensor.py index 33396e25267..cfdb25fd412 100644 --- a/homeassistant/components/surepetcare/sensor.py +++ b/homeassistant/components/surepetcare/sensor.py @@ -49,7 +49,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info= class SurePetcareSensor(SensorEntity): """A binary sensor implementation for Sure Petcare Entities.""" - def __init__(self, _id: int, spc: SurePetcareAPI): + def __init__(self, _id: int, spc: SurePetcareAPI) -> None: """Initialize a Sure Petcare sensor.""" self._id = _id diff --git a/homeassistant/components/synology_dsm/config_flow.py b/homeassistant/components/synology_dsm/config_flow.py index 85d1cb4bf7a..c2de05b833e 100644 --- a/homeassistant/components/synology_dsm/config_flow.py +++ b/homeassistant/components/synology_dsm/config_flow.py @@ -275,7 +275,7 @@ class SynologyDSMFlowHandler(ConfigFlow, domain=DOMAIN): class SynologyDSMOptionsFlowHandler(OptionsFlow): """Handle a option flow.""" - def __init__(self, config_entry: ConfigEntry): + def __init__(self, config_entry: ConfigEntry) -> None: """Initialize options flow.""" self.config_entry = config_entry diff --git a/homeassistant/components/system_bridge/binary_sensor.py b/homeassistant/components/system_bridge/binary_sensor.py index e18bcf516eb..488aca90bde 100644 --- a/homeassistant/components/system_bridge/binary_sensor.py +++ b/homeassistant/components/system_bridge/binary_sensor.py @@ -53,7 +53,7 @@ class BridgeBinarySensor(BridgeDeviceEntity, BinarySensorEntity): class BridgeBatteryIsChargingBinarySensor(BridgeBinarySensor): """Defines a Battery is charging binary sensor.""" - def __init__(self, coordinator: DataUpdateCoordinator, bridge: Bridge): + def __init__(self, coordinator: DataUpdateCoordinator, bridge: Bridge) -> None: """Initialize System Bridge binary sensor.""" super().__init__( coordinator,