Add and use UNIT_DEGREE constant (#33978)
* Add and use UNIT_DEGREE constant * Replace more occurrences * Add and use TEMP_KELVIN * Run isort
This commit is contained in:
1 parent
c18a6d5ea3
commit
b893150154
19 files changed
+67
-47
No files matched your search
@@ -5,6 +5,7 @@ import logging
|
||||
from homeassistant.const import (
|
||||
ENERGY_KILO_WATT_HOUR,
|
||||
POWER_WATT,
|
||||
UNIT_DEGREE,
|
||||
UNIT_PERCENTAGE,
|
||||
UNIT_VOLT,
|
||||
VOLUME_CUBIC_METERS,
|
||||
@@ -73,7 +74,7 @@ SENSOR_TYPES = {
|
||||
"Water Sensor Temperature",
|
||||
"mdi:temperature-celsius",
|
||||
"water",
|
||||
"°",
|
||||
UNIT_DEGREE,
|
||||
"temperature",
|
||||
],
|
||||
"water_sensor_humidity": [
|
||||
|
||||
Reference in new issue
Block a user