We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 017a84a commit 472d70bCopy full SHA for 472d70b
homeassistant/util/unit_conversion.py
@@ -174,7 +174,9 @@ class CarbonMonoxideConcentrationConverter(BaseUnitConverter):
174
UNIT_CLASS = "carbon_monoxide"
175
_UNIT_CONVERSION: dict[str | None, float] = {
176
CONCENTRATION_PARTS_PER_MILLION: 1,
177
- CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER: 1.145609,
+ # concentration (mg/m3) = 0.0409 x concentration (ppm) x molecular weight
178
+ # Carbon monoxide molecular weight: 28.01 g/mol
179
+ CONCENTRATION_MILLIGRAMS_PER_CUBIC_METER: 0.0409 * 28.01,
180
}
181
VALID_UNITS = {
182
CONCENTRATION_PARTS_PER_MILLION,
0 commit comments