Add and use UNIT_VOLT constant (#33994)
* Add and use UNIT_VOLT constant * Run isort
This commit is contained in:
1 parent
32e87fc4c7
commit
04c4501455
22 files changed
+125
-64
No files matched your search
@@ -17,6 +17,7 @@ from homeassistant.const import (
|
||||
TEMP_CELSIUS,
|
||||
TEMP_FAHRENHEIT,
|
||||
UNIT_PERCENTAGE,
|
||||
UNIT_VOLT,
|
||||
)
|
||||
|
||||
from . import SmartThingsEntity
|
||||
@@ -233,7 +234,7 @@ CAPABILITY_TO_SENSORS = {
|
||||
Map(Attribute.ultraviolet_index, "Ultraviolet Index", None, None)
|
||||
],
|
||||
Capability.voltage_measurement: [
|
||||
Map(Attribute.voltage, "Voltage Measurement", "V", None)
|
||||
Map(Attribute.voltage, "Voltage Measurement", UNIT_VOLT, None)
|
||||
],
|
||||
Capability.washer_mode: [Map(Attribute.washer_mode, "Washer Mode", None, None)],
|
||||
Capability.washer_operating_state: [
|
||||
|
||||
Reference in new issue
Block a user