From b282f9003a7a9a6da0bc877433122b4b6de9e6a7 Mon Sep 17 00:00:00 2001 From: Kev Date: Sun, 4 Feb 2024 13:31:55 -0500 Subject: [PATCH] Hopefully fix sensor errors --- custom_components/pirateweather/sensor.py | 25 ++--------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/custom_components/pirateweather/sensor.py b/custom_components/pirateweather/sensor.py index abc507f..963fac2 100644 --- a/custom_components/pirateweather/sensor.py +++ b/custom_components/pirateweather/sensor.py @@ -982,29 +982,8 @@ def get_state(self, data): "wind_gust", ]: state = state * 3.6 - - if self.type in [ - "dew_point", - "temperature", - "apparent_temperature", - "temperature_low", - "apparent_temperature_low", - "temperature_min", - "apparent_temperature_min", - "temperature_high", - "apparent_temperature_high", - "temperature_max", - "apparent_temperature_max", - "precip_accumulation", - "pressure", - "ozone", - "uvIndex", - "wind_speed", - "wind_gust", - ]: - outState = state - - return outState + + return state async def async_added_to_hass(self) -> None: """Connect to dispatcher listening for entity data notifications."""