mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Add wind_speed sensor device class (#14030)
This commit is contained in:
parent
66ed1b18be
commit
e0a56956e0
@ -60,6 +60,7 @@ import {
|
||||
mdiWaterPercent,
|
||||
mdiWeatherCloudy,
|
||||
mdiWeatherPouring,
|
||||
mdiWeatherWindy,
|
||||
mdiWeight,
|
||||
mdiWhiteBalanceSunny,
|
||||
mdiWifi,
|
||||
@ -159,6 +160,7 @@ export const FIXED_DEVICE_CLASS_ICONS = {
|
||||
volume: mdiCarCoolantLevel,
|
||||
water: mdiWater,
|
||||
weight: mdiWeight,
|
||||
wind_speed: mdiWeatherWindy,
|
||||
};
|
||||
|
||||
/** Domains that have a state card. */
|
||||
|
@ -124,6 +124,7 @@ const OVERRIDE_SENSOR_UNITS = {
|
||||
volume: ["fl. oz.", "ft³", "gal", "L", "mL", "m³"],
|
||||
water: ["ft³", "gal", "L", "m³"],
|
||||
weight: ["g", "kg", "lb", "mg", "oz", "µg"],
|
||||
wind_speed: ["ft/s", "km/h", "kn", "mph", "m/s"],
|
||||
};
|
||||
|
||||
const OVERRIDE_WEATHER_UNITS = {
|
||||
@ -131,7 +132,7 @@ const OVERRIDE_WEATHER_UNITS = {
|
||||
pressure: ["hPa", "mbar", "mmHg", "inHg"],
|
||||
temperature: ["°C", "°F"],
|
||||
visibility: ["km", "mi"],
|
||||
wind_speed: ["ft/s", "km/h", "kn", "mph", "m/s"],
|
||||
wind_speed: ["ft/s", "km/h", "kn", "m/s", "mph"],
|
||||
};
|
||||
|
||||
const SWITCH_AS_DOMAINS = ["cover", "fan", "light", "lock", "siren"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user