mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Add precipitation device class (#14232)
This commit is contained in:
parent
590ad5b8a0
commit
2223ffd7ee
@ -60,6 +60,7 @@ import {
|
|||||||
mdiWaterPercent,
|
mdiWaterPercent,
|
||||||
mdiWeatherCloudy,
|
mdiWeatherCloudy,
|
||||||
mdiWeatherPouring,
|
mdiWeatherPouring,
|
||||||
|
mdiWeatherRainy,
|
||||||
mdiWeatherWindy,
|
mdiWeatherWindy,
|
||||||
mdiWeight,
|
mdiWeight,
|
||||||
mdiWhiteBalanceSunny,
|
mdiWhiteBalanceSunny,
|
||||||
@ -147,6 +148,7 @@ export const FIXED_DEVICE_CLASS_ICONS = {
|
|||||||
pm25: mdiMolecule,
|
pm25: mdiMolecule,
|
||||||
power: mdiFlash,
|
power: mdiFlash,
|
||||||
power_factor: mdiAngleAcute,
|
power_factor: mdiAngleAcute,
|
||||||
|
precipitation: mdiWeatherRainy,
|
||||||
precipitation_intensity: mdiWeatherPouring,
|
precipitation_intensity: mdiWeatherPouring,
|
||||||
pressure: mdiGauge,
|
pressure: mdiGauge,
|
||||||
reactive_power: mdiFlash,
|
reactive_power: mdiFlash,
|
||||||
|
@ -117,6 +117,7 @@ const OVERRIDE_NUMBER_UNITS = {
|
|||||||
const OVERRIDE_SENSOR_UNITS = {
|
const OVERRIDE_SENSOR_UNITS = {
|
||||||
distance: ["cm", "ft", "in", "km", "m", "mi", "mm", "yd"],
|
distance: ["cm", "ft", "in", "km", "m", "mi", "mm", "yd"],
|
||||||
gas: ["ft³", "m³"],
|
gas: ["ft³", "m³"],
|
||||||
|
precipitation: ["in", "mm"],
|
||||||
precipitation_intensity: ["in/d", "in/h", "mm/d", "mm/h"],
|
precipitation_intensity: ["in/d", "in/h", "mm/d", "mm/h"],
|
||||||
pressure: ["hPa", "Pa", "kPa", "bar", "cbar", "mbar", "mmHg", "inHg", "psi"],
|
pressure: ["hPa", "Pa", "kPa", "bar", "cbar", "mbar", "mmHg", "inHg", "psi"],
|
||||||
speed: ["ft/s", "in/d", "in/h", "km/h", "kn", "m/s", "mm/d", "mm/h", "mph"],
|
speed: ["ft/s", "in/d", "in/h", "km/h", "kn", "m/s", "mm/d", "mm/h", "mph"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user