Add constructor return type in integrations O-S (#50896)
This commit is contained in:
parent
a65d3868cb
commit
f212049fc2
46 changed files with 60 additions and 54 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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] = {}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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__()
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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__(
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -233,7 +233,7 @@ class SpotifyMediaPlayer(MediaPlayerEntity):
|
|||
me: dict,
|
||||
user_id: str,
|
||||
name: str,
|
||||
):
|
||||
) -> None:
|
||||
"""Initialize."""
|
||||
self._id = user_id
|
||||
self._me = me
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue