Revise power and energy units and property names. (#6212)

* Revise power and energy units and property names.

* Add change for new wemo parameter.
This commit is contained in:
Greg Dowling authored and Pascal Vizeli committed 2017-03-19 22:02:11 +01:00
1 parent 970bde9e99
commit acf75b5253
12 files changed
+50 -49

No files matched your search

+3 -3
View File
@@ -46,11 +46,11 @@ class VeraSwitch(VeraDevice, SwitchDevice):
self.schedule_update_ha_state()
@property
def current_power_mwh(self):
"""Current power usage in mWh."""
def current_power_w(self):
"""Current power usage in W."""
power = self.vera_device.power
if power:
return convert(power, float, 0.0) * 1000
return convert(power, float, 0.0)
@property
def is_on(self):