Skip to content

Commit

Permalink
Quality fixes for Tessie (#105838)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 authored Dec 16, 2023
1 parent a12c490 commit 5963046
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/tessie/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def __init__(
)

@property
def value(self) -> Any:
def _value(self) -> Any:
"""Return value from coordinator data."""
return self.coordinator.data[self.key]
4 changes: 1 addition & 3 deletions homeassistant/components/tessie/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
from .coordinator import TessieDataUpdateCoordinator
from .entity import TessieEntity

PARALLEL_UPDATES = 0


@dataclass
class TessieSensorEntityDescription(SensorEntityDescription):
Expand Down Expand Up @@ -222,4 +220,4 @@ def __init__(
@property
def native_value(self) -> StateType:
"""Return the state of the sensor."""
return self.entity_description.value_fn(self.value)
return self.entity_description.value_fn(self._value)

0 comments on commit 5963046

Please sign in to comment.