Skip to content

Commit

Permalink
Hopefully fix sensor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneofghosts authored Feb 4, 2024
1 parent 449d308 commit b282f90
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions custom_components/pirateweather/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit b282f90

Please sign in to comment.