Add sensor device class volatile_organic_compounds_parts (#16576)

Add support for volatile_organic_compounds_parts
This commit is contained in:
Trevor North 2023-05-22 09:42:15 +01:00 committed by GitHub
parent 34e59e543b
commit e8521c59eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,7 @@ const SENSOR_DEVICE_CLASSES = [
"temperature",
"timestamp",
"volatile_organic_compounds",
"volatile_organic_compounds_parts",
"voltage",
"volume",
"water",

View File

@ -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,

View File

@ -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"],