mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
deCONZ - Change attribute Watts to W (#24535)
This commit is contained in:
parent
8951c80225
commit
9aeb75f28d
@ -100,7 +100,7 @@ class DeconzSensor(DeconzDevice):
|
|||||||
self._device.dark is not None:
|
self._device.dark is not None:
|
||||||
attr[ATTR_DARK] = self._device.dark
|
attr[ATTR_DARK] = self._device.dark
|
||||||
|
|
||||||
if self.unit_of_measurement == 'Watts':
|
if self.unit_of_measurement == 'W':
|
||||||
attr[ATTR_CURRENT] = self._device.current
|
attr[ATTR_CURRENT] = self._device.current
|
||||||
attr[ATTR_VOLTAGE] = self._device.voltage
|
attr[ATTR_VOLTAGE] = self._device.voltage
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user