Skip to content

Commit 9962367

Browse files
authored
Fix sensors not having a unit of measurement
1 parent a03a6d6 commit 9962367

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

custom_components/plugwise-beta/sensor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
_LOGGER = logging.getLogger(__name__)
2424

25-
ATTR_TEMPERATURE = [TEMP_CELSIUS, None, DEVICE_CLASS_TEMPERATURE, "mdi:thermometer"]
26-
ATTR_BATTERY_LEVEL = ["%", None, DEVICE_CLASS_BATTERY, "mdi:water-battery"]
27-
ATTR_ILLUMINANCE = ["lm", None, DEVICE_CLASS_ILLUMINANCE, "mdi:lightbulb-on-outline"]
28-
ATTR_PRESSURE = [PRESSURE_MBAR, None, DEVICE_CLASS_PRESSURE, "mdi:water"]
25+
ATTR_TEMPERATURE = ["Temperature", TEMP_CELSIUS, DEVICE_CLASS_TEMPERATURE, "mdi:thermometer"]
26+
ATTR_BATTERY_LEVEL = ["Charge", "%", DEVICE_CLASS_BATTERY, "mdi:water-battery"]
27+
ATTR_ILLUMINANCE = ["Illuminance", "lm", DEVICE_CLASS_ILLUMINANCE, "mdi:lightbulb-on-outline"]
28+
ATTR_PRESSURE = ["Pressure", PRESSURE_MBAR, DEVICE_CLASS_PRESSURE, "mdi:water"]
2929
SENSOR_MAP = {
3030
"thermostat": ATTR_TEMPERATURE,
3131
"temperature": ATTR_TEMPERATURE,

0 commit comments

Comments
 (0)