mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +00:00
Add "gas" device_class to customize (and sort existing ones) (#10196)
This commit is contained in:
parent
84c4bbd380
commit
038033cf27
@ -57,28 +57,29 @@ export const FIXED_DOMAIN_ICONS = {
|
|||||||
|
|
||||||
export const FIXED_DEVICE_CLASS_ICONS = {
|
export const FIXED_DEVICE_CLASS_ICONS = {
|
||||||
aqi: "hass:air-filter",
|
aqi: "hass:air-filter",
|
||||||
current: "hass:current-ac",
|
battery: "hass:battery",
|
||||||
carbon_dioxide: "mdi:molecule-co2",
|
carbon_dioxide: "mdi:molecule-co2",
|
||||||
carbon_monoxide: "mdi:molecule-co",
|
carbon_monoxide: "mdi:molecule-co",
|
||||||
|
current: "hass:current-ac",
|
||||||
date: "hass:calendar",
|
date: "hass:calendar",
|
||||||
energy: "hass:lightning-bolt",
|
energy: "hass:lightning-bolt",
|
||||||
gas: "hass:gas-cylinder",
|
gas: "hass:gas-cylinder",
|
||||||
humidity: "hass:water-percent",
|
humidity: "hass:water-percent",
|
||||||
illuminance: "hass:brightness-5",
|
illuminance: "hass:brightness-5",
|
||||||
|
monetary: "mdi:cash",
|
||||||
nitrogen_dioxide: "mdi:molecule",
|
nitrogen_dioxide: "mdi:molecule",
|
||||||
nitrogen_monoxide: "mdi:molecule",
|
nitrogen_monoxide: "mdi:molecule",
|
||||||
nitrous_oxide: "mdi:molecule",
|
nitrous_oxide: "mdi:molecule",
|
||||||
ozone: "mdi:molecule",
|
ozone: "mdi:molecule",
|
||||||
temperature: "hass:thermometer",
|
|
||||||
monetary: "mdi:cash",
|
|
||||||
pm25: "mdi:molecule",
|
|
||||||
pm1: "mdi:molecule",
|
pm1: "mdi:molecule",
|
||||||
pm10: "mdi:molecule",
|
pm10: "mdi:molecule",
|
||||||
pressure: "hass:gauge",
|
pm25: "mdi:molecule",
|
||||||
power: "hass:flash",
|
power: "hass:flash",
|
||||||
power_factor: "hass:angle-acute",
|
power_factor: "hass:angle-acute",
|
||||||
|
pressure: "hass:gauge",
|
||||||
signal_strength: "hass:wifi",
|
signal_strength: "hass:wifi",
|
||||||
sulphur_dioxide: "mdi:molecule",
|
sulphur_dioxide: "mdi:molecule",
|
||||||
|
temperature: "hass:thermometer",
|
||||||
timestamp: "hass:clock",
|
timestamp: "hass:clock",
|
||||||
volatile_organic_compounds: "mdi:molecule",
|
volatile_organic_compounds: "mdi:molecule",
|
||||||
voltage: "hass:sine-wave",
|
voltage: "hass:sine-wave",
|
||||||
|
@ -58,19 +58,20 @@ const hassAttributeUtil = {
|
|||||||
"current",
|
"current",
|
||||||
"date",
|
"date",
|
||||||
"energy",
|
"energy",
|
||||||
|
"gas",
|
||||||
"humidity",
|
"humidity",
|
||||||
"illuminance",
|
"illuminance",
|
||||||
|
"monetary",
|
||||||
"nitrogen_dioxide",
|
"nitrogen_dioxide",
|
||||||
"nitrogen_monoxide",
|
"nitrogen_monoxide",
|
||||||
"nitrous_oxide",
|
"nitrous_oxide",
|
||||||
"ozone",
|
"ozone",
|
||||||
"pm25",
|
|
||||||
"pm1",
|
"pm1",
|
||||||
"pm10",
|
"pm10",
|
||||||
|
"pm25",
|
||||||
"power",
|
"power",
|
||||||
"power_factor",
|
"power_factor",
|
||||||
"pressure",
|
"pressure",
|
||||||
"monetary",
|
|
||||||
"signal_strength",
|
"signal_strength",
|
||||||
"sulphur_dioxide",
|
"sulphur_dioxide",
|
||||||
"temperature",
|
"temperature",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user