Add support for PRESSURE_CBAR (centibars) (#58762)
* Add support for PRESSURE_CBAR (centibars). This is the standard UOM for tensiometers. While the data could be converted into something like MBAR, and displayed like that, the correct UOM for this type of sensor is CBAR. Displaying it as MBAR would be the same as displaying air pressure as feet of Hg, while technically correct, it's hard to understand when reading. Adding support for this UOM will fix errors in the UI(statistics) about the unit not matching a unit of the device_class. * Add tests for PRESSURE_CBAR
This commit is contained in:
parent
eec84ad71e
commit
93395f9b68
6 changed files with 17 additions and 4 deletions
|
@ -34,6 +34,7 @@ from homeassistant.const import (
|
|||
ELECTRIC_POTENTIAL_VOLT,
|
||||
LIGHT_LUX,
|
||||
PERCENTAGE,
|
||||
PRESSURE_CBAR,
|
||||
PRESSURE_MBAR,
|
||||
TEMP_CELSIUS,
|
||||
)
|
||||
|
@ -47,7 +48,6 @@ from .const import (
|
|||
CONF_TYPE_OWSERVER,
|
||||
CONF_TYPE_SYSBUS,
|
||||
DOMAIN,
|
||||
PRESSURE_CBAR,
|
||||
READ_MODE_FLOAT,
|
||||
READ_MODE_INT,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue