Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sensor device class volatile_organic_compounds_parts #16576

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions gallery/src/pages/misc/entity-state.ts
Expand Up @@ -50,6 +50,7 @@ const SENSOR_DEVICE_CLASSES = [
"temperature",
"timestamp",
"volatile_organic_compounds",
"volatile_organic_compounds_parts",
"voltage",
"volume",
"water",
Expand Down
1 change: 1 addition & 0 deletions src/common/const.ts
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/common/entity/get_states.ts
Expand Up @@ -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"],
Expand Down