Remove max and min temperature sensors (#41859)
parent
4899d7628a
commit
9dcc769a4a
|
@ -59,8 +59,6 @@ SENSOR_TYPES = {
|
|||
"sum_rain_1": ["Rain last hour", LENGTH_MILLIMETERS, "mdi:weather-rainy", None],
|
||||
"sum_rain_24": ["Rain today", LENGTH_MILLIMETERS, "mdi:weather-rainy", None],
|
||||
"battery_percent": ["Battery Percent", PERCENTAGE, None, DEVICE_CLASS_BATTERY],
|
||||
"min_temp": ["Min Temp.", TEMP_CELSIUS, None, DEVICE_CLASS_TEMPERATURE],
|
||||
"max_temp": ["Max Temp.", TEMP_CELSIUS, None, DEVICE_CLASS_TEMPERATURE],
|
||||
"windangle": ["Direction", None, "mdi:compass-outline", None],
|
||||
"windangle_value": ["Angle", DEGREE, "mdi:compass-outline", None],
|
||||
"windstrength": [
|
||||
|
@ -333,10 +331,6 @@ class NetatmoSensor(NetatmoBase):
|
|||
self._state = data["pressure_trend"]
|
||||
elif self.type == "battery_percent":
|
||||
self._state = data["battery_percent"]
|
||||
elif self.type == "min_temp":
|
||||
self._state = data["min_temp"]
|
||||
elif self.type == "max_temp":
|
||||
self._state = data["max_temp"]
|
||||
elif self.type == "windangle_value":
|
||||
self._state = fix_angle(data["WindAngle"])
|
||||
elif self.type == "windangle":
|
||||
|
|
Loading…
Reference in New Issue