forked from home-assistant/core
Update dlink.py (#4317)
corrected "total consumption" units from W to kWh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user