Remove max and min temperature sensors (#41859)

pull/41897/head
cgtobi 2020-10-15 09:24:20 +02:00 committed by GitHub
parent 4899d7628a
commit 9dcc769a4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -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":