Fix home-assistant
This commit is contained in:
parent
91d26f15e5
commit
9c8620600f
1 changed files with 3 additions and 2 deletions
|
@ -113,13 +113,15 @@ index 0000000000..6f75b4a3d9
|
||||||
+ATTR_TOTALSNOW = "totalsnow"
|
+ATTR_TOTALSNOW = "totalsnow"
|
||||||
+ATTR_WINDDIRECTION = "winddirection"
|
+ATTR_WINDDIRECTION = "winddirection"
|
||||||
+
|
+
|
||||||
|
+PRECIPITATION_MILLIMETERS = "mm"
|
||||||
|
+
|
||||||
+SENSOR_TYPES = {
|
+SENSOR_TYPES = {
|
||||||
+ ATTR_DEWPOINT: ("Dew Point", DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS, 10),
|
+ ATTR_DEWPOINT: ("Dew Point", DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS, 10),
|
||||||
+ ATTR_HUMIDITY: ("Humidity", DEVICE_CLASS_HUMIDITY, PERCENTAGE, 10),
|
+ ATTR_HUMIDITY: ("Humidity", DEVICE_CLASS_HUMIDITY, PERCENTAGE, 10),
|
||||||
+ ATTR_ICON: ("Icon", None, None, 1),
|
+ ATTR_ICON: ("Icon", None, None, 1),
|
||||||
+ ATTR_MAXWIND: ("Top Wind Speed", None, SPEED_KILOMETERS_PER_HOUR, 10),
|
+ ATTR_MAXWIND: ("Top Wind Speed", None, SPEED_KILOMETERS_PER_HOUR, 10),
|
||||||
+ ATTR_MEANWIND: ("Wind Speed", None, SPEED_KILOMETERS_PER_HOUR, 10),
|
+ ATTR_MEANWIND: ("Wind Speed", None, SPEED_KILOMETERS_PER_HOUR, 10),
|
||||||
+ ATTR_PRECIPITATION: ("Precipitation", None, PRECIPITATION_MILLIMETERS_PER_HOUR, 10),
|
+ ATTR_PRECIPITATION: ("Precipitation", None, PRECIPITATION_MILLIMETERS, 10),
|
||||||
+ ATTR_PRECIPITATION3H: (
|
+ ATTR_PRECIPITATION3H: (
|
||||||
+ f"Precipitation 3{TIME_HOURS}",
|
+ f"Precipitation 3{TIME_HOURS}",
|
||||||
+ None,
|
+ None,
|
||||||
|
@ -419,4 +421,3 @@ index 0000000000..805615db3d
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
2.37.1
|
2.37.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue