mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-27 14:57:20 +00:00
Add new air quality device classes to frontend (#9829)
This commit is contained in:
parent
dbe209e3f2
commit
047e856a61
@ -56,18 +56,27 @@ export const FIXED_DOMAIN_ICONS = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const FIXED_DEVICE_CLASS_ICONS = {
|
export const FIXED_DEVICE_CLASS_ICONS = {
|
||||||
|
aqi: "hass:air-filter",
|
||||||
current: "hass:current-ac",
|
current: "hass:current-ac",
|
||||||
carbon_dioxide: "mdi:molecule-co2",
|
carbon_dioxide: "mdi:molecule-co2",
|
||||||
carbon_monoxide: "mdi:molecule-co",
|
carbon_monoxide: "mdi:molecule-co",
|
||||||
energy: "hass:lightning-bolt",
|
energy: "hass:lightning-bolt",
|
||||||
humidity: "hass:water-percent",
|
humidity: "hass:water-percent",
|
||||||
illuminance: "hass:brightness-5",
|
illuminance: "hass:brightness-5",
|
||||||
|
nitrogen_dioxide: "mdi:molecule",
|
||||||
|
nitrogen_monoxide: "mdi:molecule",
|
||||||
|
nitrous_oxide: "mdi:molecule",
|
||||||
|
ozone: "mdi:molecule",
|
||||||
temperature: "hass:thermometer",
|
temperature: "hass:thermometer",
|
||||||
monetary: "mdi:cash",
|
monetary: "mdi:cash",
|
||||||
|
pm25: "mdi:molecule",
|
||||||
|
pm1: "mdi:molecule",
|
||||||
|
pm10: "mdi:molecule",
|
||||||
pressure: "hass:gauge",
|
pressure: "hass:gauge",
|
||||||
power: "hass:flash",
|
power: "hass:flash",
|
||||||
power_factor: "hass:angle-acute",
|
power_factor: "hass:angle-acute",
|
||||||
signal_strength: "hass:wifi",
|
signal_strength: "hass:wifi",
|
||||||
|
sulphur_dioxide: "mdi:molecule",
|
||||||
timestamp: "hass:clock",
|
timestamp: "hass:clock",
|
||||||
voltage: "hass:sine-wave",
|
voltage: "hass:sine-wave",
|
||||||
};
|
};
|
||||||
|
@ -50,6 +50,7 @@ const hassAttributeUtil = {
|
|||||||
],
|
],
|
||||||
humidifier: ["dehumidifier", "humidifier"],
|
humidifier: ["dehumidifier", "humidifier"],
|
||||||
sensor: [
|
sensor: [
|
||||||
|
"aqi",
|
||||||
"battery",
|
"battery",
|
||||||
"carbon_dioxide",
|
"carbon_dioxide",
|
||||||
"carbon_monoxide",
|
"carbon_monoxide",
|
||||||
@ -57,11 +58,19 @@ const hassAttributeUtil = {
|
|||||||
"energy",
|
"energy",
|
||||||
"humidity",
|
"humidity",
|
||||||
"illuminance",
|
"illuminance",
|
||||||
|
"nitrogen_dioxide",
|
||||||
|
"nitrogen_monoxide",
|
||||||
|
"nitrous_oxide",
|
||||||
|
"ozone",
|
||||||
|
"pm25",
|
||||||
|
"pm1",
|
||||||
|
"pm10",
|
||||||
"power",
|
"power",
|
||||||
"power_factor",
|
"power_factor",
|
||||||
"pressure",
|
"pressure",
|
||||||
"monetary",
|
"monetary",
|
||||||
"signal_strength",
|
"signal_strength",
|
||||||
|
"sulphur_dioxide",
|
||||||
"temperature",
|
"temperature",
|
||||||
"timestamp",
|
"timestamp",
|
||||||
"voltage",
|
"voltage",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user