|
37 | 37 | key="radonShortTermAvg", |
38 | 38 | native_unit_of_measurement="Bq/m³", |
39 | 39 | translation_key="radon", |
| 40 | + suggested_display_precision=0, |
40 | 41 | ), |
41 | 42 | "temp": SensorEntityDescription( |
42 | 43 | key="temp", |
43 | 44 | device_class=SensorDeviceClass.TEMPERATURE, |
44 | 45 | native_unit_of_measurement=UnitOfTemperature.CELSIUS, |
45 | 46 | state_class=SensorStateClass.MEASUREMENT, |
| 47 | + suggested_display_precision=1, |
46 | 48 | ), |
47 | 49 | "humidity": SensorEntityDescription( |
48 | 50 | key="humidity", |
49 | 51 | device_class=SensorDeviceClass.HUMIDITY, |
50 | 52 | native_unit_of_measurement=PERCENTAGE, |
51 | 53 | state_class=SensorStateClass.MEASUREMENT, |
| 54 | + suggested_display_precision=0, |
52 | 55 | ), |
53 | 56 | "pressure": SensorEntityDescription( |
54 | 57 | key="pressure", |
55 | 58 | device_class=SensorDeviceClass.ATMOSPHERIC_PRESSURE, |
56 | 59 | native_unit_of_measurement=UnitOfPressure.MBAR, |
57 | 60 | state_class=SensorStateClass.MEASUREMENT, |
| 61 | + suggested_display_precision=1, |
58 | 62 | ), |
59 | 63 | "sla": SensorEntityDescription( |
60 | 64 | key="sla", |
61 | 65 | device_class=SensorDeviceClass.SOUND_PRESSURE, |
62 | 66 | native_unit_of_measurement=UnitOfSoundPressure.WEIGHTED_DECIBEL_A, |
63 | 67 | state_class=SensorStateClass.MEASUREMENT, |
| 68 | + suggested_display_precision=0, |
64 | 69 | ), |
65 | 70 | "battery": SensorEntityDescription( |
66 | 71 | key="battery", |
67 | 72 | device_class=SensorDeviceClass.BATTERY, |
68 | 73 | native_unit_of_measurement=PERCENTAGE, |
69 | 74 | entity_category=EntityCategory.DIAGNOSTIC, |
70 | 75 | state_class=SensorStateClass.MEASUREMENT, |
| 76 | + suggested_display_precision=0, |
71 | 77 | ), |
72 | 78 | "co2": SensorEntityDescription( |
73 | 79 | key="co2", |
74 | 80 | device_class=SensorDeviceClass.CO2, |
75 | 81 | native_unit_of_measurement=CONCENTRATION_PARTS_PER_MILLION, |
76 | 82 | state_class=SensorStateClass.MEASUREMENT, |
| 83 | + suggested_display_precision=0, |
77 | 84 | ), |
78 | 85 | "voc": SensorEntityDescription( |
79 | 86 | key="voc", |
80 | 87 | device_class=SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS_PARTS, |
81 | 88 | native_unit_of_measurement=CONCENTRATION_PARTS_PER_BILLION, |
82 | 89 | state_class=SensorStateClass.MEASUREMENT, |
| 90 | + suggested_display_precision=0, |
83 | 91 | ), |
84 | 92 | "light": SensorEntityDescription( |
85 | 93 | key="light", |
86 | 94 | native_unit_of_measurement=PERCENTAGE, |
87 | 95 | translation_key="light", |
88 | 96 | state_class=SensorStateClass.MEASUREMENT, |
| 97 | + suggested_display_precision=0, |
89 | 98 | ), |
90 | 99 | "lux": SensorEntityDescription( |
91 | 100 | key="lux", |
92 | 101 | device_class=SensorDeviceClass.ILLUMINANCE, |
93 | 102 | native_unit_of_measurement=LIGHT_LUX, |
94 | 103 | state_class=SensorStateClass.MEASUREMENT, |
| 104 | + suggested_display_precision=0, |
95 | 105 | ), |
96 | 106 | "virusRisk": SensorEntityDescription( |
97 | 107 | key="virusRisk", |
98 | 108 | translation_key="virus_risk", |
99 | 109 | state_class=SensorStateClass.MEASUREMENT, |
| 110 | + suggested_display_precision=0, |
100 | 111 | ), |
101 | 112 | "mold": SensorEntityDescription( |
102 | 113 | key="mold", |
103 | 114 | translation_key="mold", |
104 | 115 | state_class=SensorStateClass.MEASUREMENT, |
| 116 | + suggested_display_precision=0, |
105 | 117 | ), |
106 | 118 | "rssi": SensorEntityDescription( |
107 | 119 | key="rssi", |
|
110 | 122 | entity_registry_enabled_default=False, |
111 | 123 | entity_category=EntityCategory.DIAGNOSTIC, |
112 | 124 | state_class=SensorStateClass.MEASUREMENT, |
| 125 | + suggested_display_precision=0, |
113 | 126 | ), |
114 | 127 | "pm1": SensorEntityDescription( |
115 | 128 | key="pm1", |
116 | 129 | native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, |
117 | 130 | device_class=SensorDeviceClass.PM1, |
118 | 131 | state_class=SensorStateClass.MEASUREMENT, |
| 132 | + suggested_display_precision=0, |
119 | 133 | ), |
120 | 134 | "pm25": SensorEntityDescription( |
121 | 135 | key="pm25", |
122 | 136 | native_unit_of_measurement=CONCENTRATION_MICROGRAMS_PER_CUBIC_METER, |
123 | 137 | device_class=SensorDeviceClass.PM25, |
124 | 138 | state_class=SensorStateClass.MEASUREMENT, |
| 139 | + suggested_display_precision=0, |
125 | 140 | ), |
126 | 141 | } |
127 | 142 |
|
|
0 commit comments