Use pressure constants in code base (#40262)
This commit is contained in:
1 parent
f563068ce6
commit
e330468a13
17 files changed
+56
-30
No files matched your search
@@ -7,6 +7,7 @@ from homeassistant.const import (
|
||||
DEVICE_CLASS_PRESSURE,
|
||||
DEVICE_CLASS_TEMPERATURE,
|
||||
PERCENTAGE,
|
||||
PRESSURE_HPA,
|
||||
TEMP_CELSIUS,
|
||||
)
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
@@ -21,7 +22,7 @@ DEVICE_CLASS_SOUND = "sound_level"
|
||||
|
||||
SENSOR_TYPES = {
|
||||
DEVICE_CLASS_TEMPERATURE: (None, 1, TEMP_CELSIUS),
|
||||
DEVICE_CLASS_PRESSURE: (None, 0, "hPa"),
|
||||
DEVICE_CLASS_PRESSURE: (None, 0, PRESSURE_HPA),
|
||||
DEVICE_CLASS_HUMIDITY: (None, 1, PERCENTAGE),
|
||||
DEVICE_CLASS_SOUND: ("mdi:ear-hearing", 1, "dBa"),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user