Skip to content

Commit 02649ae

Browse files
authored
Merge pull request #56 from plugwise/fix_valve_%
valve_position*100
2 parents 39c9f5b + 0db8972 commit 02649ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/plugwise-beta/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def update(self):
341341
if self._sensor in data:
342342
if data[self._sensor] is not None:
343343
measurement = data[self._sensor]
344-
if self._sensor == "battery":
344+
if self._sensor == "battery" or self._sensor == "valve_position":
345345
measurement = measurement * 100
346346
if self._unit_of_measurement == "%":
347347
measurement = int(measurement)

0 commit comments

Comments
 (0)