All new water device class (#14174)

This commit is contained in:
epenet 2022-10-24 21:06:51 +02:00 committed by GitHub
parent 5bb9538861
commit 9d3eaba46b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,7 @@ import {
mdiBullhorn, mdiBullhorn,
mdiCalendar, mdiCalendar,
mdiCalendarClock, mdiCalendarClock,
mdiCarCoolantLevel,
mdiCash, mdiCash,
mdiClock, mdiClock,
mdiCloudUpload, mdiCloudUpload,
@ -55,6 +56,7 @@ import {
mdiThermostat, mdiThermostat,
mdiTimerOutline, mdiTimerOutline,
mdiVideo, mdiVideo,
mdiWater,
mdiWaterPercent, mdiWaterPercent,
mdiWeatherCloudy, mdiWeatherCloudy,
mdiWeatherPouring, mdiWeatherPouring,
@ -154,7 +156,8 @@ export const FIXED_DEVICE_CLASS_ICONS = {
timestamp: mdiClock, timestamp: mdiClock,
volatile_organic_compounds: mdiMolecule, volatile_organic_compounds: mdiMolecule,
voltage: mdiSineWave, voltage: mdiSineWave,
// volume: TBD, => no well matching icon found volume: mdiCarCoolantLevel,
water: mdiWater,
weight: mdiWeight, weight: mdiWeight,
}; };

View File

@ -121,6 +121,7 @@ const OVERRIDE_SENSOR_UNITS = {
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"],
temperature: ["°C", "°F", "K"], temperature: ["°C", "°F", "K"],
volume: ["fl. oz.", "ft³", "gal", "L", "mL", "m³"], volume: ["fl. oz.", "ft³", "gal", "L", "mL", "m³"],
water: ["ft³", "gal", "L", "m³"],
weight: ["g", "kg", "lb", "mg", "oz", "µg"], weight: ["g", "kg", "lb", "mg", "oz", "µg"],
}; };