Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Feb 4, 2024
1 parent f8ebe46 commit 0d8a309
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions custom_components/teslemetry/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
TeslemetryEnergyLiveEntity,
TeslemetryEnergyInfoEntity,
)
from .models import TeslemetryVehicleData, TeslemetryEnergyData
from .models import TeslemetryVehicleData


@dataclass(frozen=True, kw_only=True)
Expand Down Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions custom_components/teslemetry/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 0d8a309

Please sign in to comment.