Add and use percentage constant (#32094)
* Add and use percentage constant * Fix pylint error and broken test
This commit is contained in:
parent
c7f128f286
commit
f1a0ca7cd3
155 changed files with 735 additions and 459 deletions
|
@ -1,7 +1,7 @@
|
|||
"""Support for Waterfurnace."""
|
||||
|
||||
from homeassistant.components.sensor import ENTITY_ID_FORMAT
|
||||
from homeassistant.const import TEMP_FAHRENHEIT
|
||||
from homeassistant.const import TEMP_FAHRENHEIT, UNIT_PERCENTAGE
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.util import slugify
|
||||
|
@ -34,9 +34,11 @@ SENSORS = [
|
|||
"Loop Temp", "enteringwatertemp", "mdi:thermometer", TEMP_FAHRENHEIT
|
||||
),
|
||||
WFSensorConfig(
|
||||
"Humidity Set Point", "tstathumidsetpoint", "mdi:water-percent", "%"
|
||||
"Humidity Set Point", "tstathumidsetpoint", "mdi:water-percent", UNIT_PERCENTAGE
|
||||
),
|
||||
WFSensorConfig(
|
||||
"Humidity", "tstatrelativehumidity", "mdi:water-percent", UNIT_PERCENTAGE
|
||||
),
|
||||
WFSensorConfig("Humidity", "tstatrelativehumidity", "mdi:water-percent", "%"),
|
||||
WFSensorConfig("Compressor Power", "compressorpower", "mdi:flash", "W"),
|
||||
WFSensorConfig("Fan Power", "fanpower", "mdi:flash", "W"),
|
||||
WFSensorConfig("Aux Power", "auxpower", "mdi:flash", "W"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue