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:
1 parent
970bde9e99
commit
acf75b5253
12 files changed
+50
-49
No files matched your search
@@ -111,9 +111,9 @@ class MfiSwitch(SwitchDevice):
|
||||
self._target_state = False
|
||||
|
||||
@property
|
||||
def current_power_mwh(self):
|
||||
"""Return the current power usage in mWh."""
|
||||
return int(self._port.data.get('active_pwr', 0) * 1000)
|
||||
def current_power_w(self):
|
||||
"""Return the current power usage in W."""
|
||||
return int(self._port.data.get('active_pwr', 0))
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
|
||||
Reference in new issue
Block a user