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 2017-03-19 21:02:11 +00:00 committed by Pascal Vizeli
parent 970bde9e99
commit acf75b5253
12 changed files with 50 additions and 49 deletions

View file

@ -59,13 +59,13 @@ class SmartPlugSwitch(SwitchDevice):
return self._name
@property
def current_power_mwh(self):
"""Return the current power usage in mWh."""
def current_power_w(self):
"""Return the current power usage in W."""
return self._now_power
@property
def today_power_mw(self):
"""Return the today total power usage in mW."""
def today_energy_kwh(self):
"""Return the today total energy usage in kWh."""
return self._now_energy_day
@property