From e8521c59eb1a957513852f1bb0b2791ca25af271 Mon Sep 17 00:00:00 2001 From: Trevor North Date: Mon, 22 May 2023 09:42:15 +0100 Subject: [PATCH] Add sensor device class volatile_organic_compounds_parts (#16576) Add support for volatile_organic_compounds_parts --- gallery/src/pages/misc/entity-state.ts | 1 + src/common/const.ts | 1 + src/common/entity/get_states.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/gallery/src/pages/misc/entity-state.ts b/gallery/src/pages/misc/entity-state.ts index c49fcc0abc..01beaa0507 100644 --- a/gallery/src/pages/misc/entity-state.ts +++ b/gallery/src/pages/misc/entity-state.ts @@ -50,6 +50,7 @@ const SENSOR_DEVICE_CLASSES = [ "temperature", "timestamp", "volatile_organic_compounds", + "volatile_organic_compounds_parts", "voltage", "volume", "water", diff --git a/src/common/const.ts b/src/common/const.ts index e816d5afe3..4298e855be 100644 --- a/src/common/const.ts +++ b/src/common/const.ts @@ -160,6 +160,7 @@ export const FIXED_DEVICE_CLASS_ICONS = { temperature: mdiThermometer, timestamp: mdiClock, volatile_organic_compounds: mdiMolecule, + volatile_organic_compounds_parts: mdiMolecule, voltage: mdiSineWave, volume: mdiCarCoolantLevel, water: mdiWater, diff --git a/src/common/entity/get_states.ts b/src/common/entity/get_states.ts index c98501092d..5909dd2938 100644 --- a/src/common/entity/get_states.ts +++ b/src/common/entity/get_states.ts @@ -188,6 +188,7 @@ const FIXED_DOMAIN_ATTRIBUTE_STATES = { "temperature", "timestamp", "volatile_organic_compounds", + "volatile_organic_compounds_parts", "voltage", ], state_class: ["measurement", "total", "total_increasing"],