From 59630460c67aa66ac7b8cf83be54dc6ded3d6c86 Mon Sep 17 00:00:00 2001 From: Brett Adams Date: Sat, 16 Dec 2023 12:11:20 +1000 Subject: [PATCH] Quality fixes for Tessie (#105838) --- homeassistant/components/tessie/entity.py | 2 +- homeassistant/components/tessie/sensor.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/tessie/entity.py b/homeassistant/components/tessie/entity.py index 361608cc73e17f..a0263467ac2b9f 100644 --- a/homeassistant/components/tessie/entity.py +++ b/homeassistant/components/tessie/entity.py @@ -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] diff --git a/homeassistant/components/tessie/sensor.py b/homeassistant/components/tessie/sensor.py index 1c83370330bf79..2836b7e39317fd 100644 --- a/homeassistant/components/tessie/sensor.py +++ b/homeassistant/components/tessie/sensor.py @@ -31,8 +31,6 @@ from .coordinator import TessieDataUpdateCoordinator from .entity import TessieEntity -PARALLEL_UPDATES = 0 - @dataclass class TessieSensorEntityDescription(SensorEntityDescription): @@ -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)