deCONZ - Change attribute Watts to W (#24535)

pull/24582/head
Robert Svensson 2019-06-14 20:14:45 +02:00 committed by GitHub
parent 8951c80225
commit 9aeb75f28d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class DeconzSensor(DeconzDevice):
self._device.dark is not None:
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_VOLTAGE] = self._device.voltage