diff --git a/custom_components/teslemetry/binary_sensor.py b/custom_components/teslemetry/binary_sensor.py index 87e0425..d79cfad 100644 --- a/custom_components/teslemetry/binary_sensor.py +++ b/custom_components/teslemetry/binary_sensor.py @@ -20,7 +20,7 @@ TeslemetryEnergyLiveEntity, TeslemetryEnergyInfoEntity, ) -from .models import TeslemetryVehicleData, TeslemetryEnergyData +from .models import TeslemetryVehicleData @dataclass(frozen=True, kw_only=True) @@ -181,7 +181,7 @@ async def async_setup_entry( class TeslemetryBinarySensorEntity: - """Base class for all Teslemetry binary sensors""" + """Base class for all Teslemetry binary sensors.""" entity_description: TeslemetryBinarySensorEntityDescription diff --git a/custom_components/teslemetry/select.py b/custom_components/teslemetry/select.py index 7b1be13..1c609db 100644 --- a/custom_components/teslemetry/select.py +++ b/custom_components/teslemetry/select.py @@ -95,11 +95,6 @@ def available(self) -> bool: """Return if sensor is available.""" return super().available and self.has() - @property - def current_option(self) -> str | None: - """Return the current selected option.""" - return self.get() - @property def current_option(self) -> str | None: """Return the current selected option."""