Add PRESSURE_CBAR to onewire constants (#41826)
This commit is contained in:
parent
3ffa050905
commit
ba789105ee
3 changed files with 16 additions and 8 deletions
|
@ -14,6 +14,7 @@ from homeassistant.const import (
|
|||
ELECTRICAL_CURRENT_AMPERE,
|
||||
LIGHT_LUX,
|
||||
PERCENTAGE,
|
||||
PRESSURE_MBAR,
|
||||
TEMP_CELSIUS,
|
||||
VOLT,
|
||||
)
|
||||
|
@ -28,6 +29,7 @@ from .const import (
|
|||
CONF_TYPE_SYSBUS,
|
||||
DEFAULT_OWSERVER_PORT,
|
||||
DEFAULT_SYSBUS_MOUNT_DIR,
|
||||
PRESSURE_CBAR,
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
@ -86,16 +88,16 @@ SENSOR_TYPES = {
|
|||
"humidity_hih5030": ["humidity", PERCENTAGE],
|
||||
"humidity_htm1735": ["humidity", PERCENTAGE],
|
||||
"humidity_raw": ["humidity", PERCENTAGE],
|
||||
"pressure": ["pressure", "mb"],
|
||||
"pressure": ["pressure", PRESSURE_MBAR],
|
||||
"illuminance": ["illuminance", LIGHT_LUX],
|
||||
"wetness_0": ["wetness", PERCENTAGE],
|
||||
"wetness_1": ["wetness", PERCENTAGE],
|
||||
"wetness_2": ["wetness", PERCENTAGE],
|
||||
"wetness_3": ["wetness", PERCENTAGE],
|
||||
"moisture_0": ["moisture", "cb"],
|
||||
"moisture_1": ["moisture", "cb"],
|
||||
"moisture_2": ["moisture", "cb"],
|
||||
"moisture_3": ["moisture", "cb"],
|
||||
"moisture_0": ["moisture", PRESSURE_CBAR],
|
||||
"moisture_1": ["moisture", PRESSURE_CBAR],
|
||||
"moisture_2": ["moisture", PRESSURE_CBAR],
|
||||
"moisture_3": ["moisture", PRESSURE_CBAR],
|
||||
"counter_a": ["counter", "count"],
|
||||
"counter_b": ["counter", "count"],
|
||||
"HobbyBoard": ["none", "none"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue