|
26 | 26 | DEGREE, |
27 | 27 | PERCENTAGE, |
28 | 28 | Platform, |
29 | | - UnitOfLength, |
| 29 | + UnitOfPrecipitationDepth, |
30 | 30 | UnitOfPressure, |
31 | 31 | UnitOfSpeed, |
32 | 32 | UnitOfTemperature, |
|
164 | 164 | device_class=SensorDeviceClass.PRESSURE, |
165 | 165 | native_unit_of_measurement=UnitOfPressure.HPA, |
166 | 166 | ), |
| 167 | + SensorEntityDescription( |
| 168 | + key=ATTR_FORECAST_PRECIPITATION_AMOUNT, |
| 169 | + translation_key="precipitation", |
| 170 | + device_class=SensorDeviceClass.PRECIPITATION, |
| 171 | + native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS, |
| 172 | + entity_registry_enabled_default=False, |
| 173 | + ), |
167 | 174 | SensorEntityDescription( |
168 | 175 | key=ATTR_FORECAST_WIND_SPEED, |
169 | 176 | translation_key="wind_speed", |
|
202 | 209 | key=ATTR_FORECAST_RAIN_AMOUNT, |
203 | 210 | translation_key="rain_amount", |
204 | 211 | icon="mdi:weather-rainy", |
205 | | - native_unit_of_measurement=UnitOfLength.MILLIMETERS, |
| 212 | + device_class=SensorDeviceClass.PRECIPITATION, |
| 213 | + native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS, |
206 | 214 | entity_registry_enabled_default=False, |
207 | 215 | ), |
208 | 216 | SensorEntityDescription( |
209 | 217 | key=ATTR_FORECAST_SNOW_AMOUNT, |
210 | 218 | translation_key="snow_amount", |
211 | 219 | icon="mdi:weather-snowy", |
212 | | - native_unit_of_measurement=UnitOfLength.MILLIMETERS, |
| 220 | + device_class=SensorDeviceClass.PRECIPITATION, |
| 221 | + native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS, |
213 | 222 | entity_registry_enabled_default=False, |
214 | 223 | ), |
215 | 224 | SensorEntityDescription( |
|
289 | 298 | device_class=SensorDeviceClass.PRESSURE, |
290 | 299 | native_unit_of_measurement=UnitOfPressure.HPA, |
291 | 300 | ), |
| 301 | + SensorEntityDescription( |
| 302 | + key=ATTR_FORECAST_PRECIPITATION_AMOUNT, |
| 303 | + translation_key="precipitation_forecast", |
| 304 | + device_class=SensorDeviceClass.PRECIPITATION, |
| 305 | + native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS, |
| 306 | + entity_registry_enabled_default=False, |
| 307 | + ), |
292 | 308 | SensorEntityDescription( |
293 | 309 | key=ATTR_FORECAST_WIND_SPEED, |
294 | 310 | translation_key="wind_speed_forecast", |
|
328 | 344 | key=ATTR_FORECAST_RAIN_AMOUNT, |
329 | 345 | translation_key="rain_amount_forecast", |
330 | 346 | icon="mdi:weather-rainy", |
331 | | - native_unit_of_measurement=UnitOfLength.MILLIMETERS, |
| 347 | + device_class=SensorDeviceClass.PRECIPITATION, |
| 348 | + native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS, |
332 | 349 | entity_registry_enabled_default=False, |
333 | 350 | ), |
334 | 351 | SensorEntityDescription( |
335 | 352 | key=ATTR_FORECAST_SNOW_AMOUNT, |
336 | 353 | translation_key="snow_amount_forecast", |
337 | 354 | icon="mdi:weather-snowy", |
338 | | - native_unit_of_measurement=UnitOfLength.MILLIMETERS, |
| 355 | + device_class=SensorDeviceClass.PRECIPITATION, |
| 356 | + native_unit_of_measurement=UnitOfPrecipitationDepth.MILLIMETERS, |
339 | 357 | entity_registry_enabled_default=False, |
340 | 358 | ), |
341 | 359 | SensorEntityDescription( |
|
0 commit comments