Update dlink.py (#4317)

corrected "total consumption" units from W to kWh
pull/4324/head
sustah 2016-11-09 04:58:27 +01:00 committed by Paulus Schoutsen
parent 4f86c9ecda
commit 8cbb8f6527
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class SmartPlugSwitch(SwitchDevice):
current_consumption = STATE_UNKNOWN
try:
total_consumption = "%.1f W" % \
total_consumption = "%.1f kWh" % \
float(self.smartplug.total_consumption)
except ValueError:
total_consumption = STATE_UNKNOWN