Skip to content

Commit

Permalink
fix: unit of measurement voc (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernst79 authored Aug 24, 2022
1 parent 701e17e commit 6e8a65e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/sensor_state_data/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class SensorLibrary:
device_class=SensorDeviceClass.CO2,
native_unit_of_measurement=Units.CONCENTRATION_PARTS_PER_MILLION,
)
VOLATILE_ORGANIC_COMPOUNDS__CONCENTRATION_PARTS_PER_MILLION = BaseSensorDescription(
device_class=SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS,
native_unit_of_measurement=Units.CONCENTRATION_PARTS_PER_MILLION,
VOLATILE_ORGANIC_COMPOUNDS__CONCENTRATION_MICROGRAMS_PER_CUBIC_METER = (
BaseSensorDescription(
device_class=SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS,
native_unit_of_measurement=Units.CONCENTRATION_MICROGRAMS_PER_CUBIC_METER,
)
)

0 comments on commit 6e8a65e

Please sign in to comment.