Update wemo.py
parent
b163544e3c
commit
e221c8a37d
|
@ -168,19 +168,19 @@ class WemoSwitch(SwitchDevice):
|
||||||
def on_for(self):
|
def on_for(self):
|
||||||
"""On time in seconds."""
|
"""On time in seconds."""
|
||||||
if self.insight_params:
|
if self.insight_params:
|
||||||
return as_uptime(self.insight_params['onfor'])
|
return WemoSwitch.as_uptime(self.insight_params['onfor'])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def on_today(self):
|
def on_today(self):
|
||||||
"""On time in seconds."""
|
"""On time in seconds."""
|
||||||
if self.insight_params:
|
if self.insight_params:
|
||||||
return as_uptime(self.insight_params['ontoday'])
|
return WemoSwitch.as_uptime(self.insight_params['ontoday'])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def on_total(self):
|
def on_total(self):
|
||||||
"""On time in seconds."""
|
"""On time in seconds."""
|
||||||
if self.insight_params:
|
if self.insight_params:
|
||||||
return as_uptime(self.insight_params['ontotal'])
|
return WemoSwitch.as_uptime(self.insight_params['ontotal'])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def power_total_mw_min(self):
|
def power_total_mw_min(self):
|
||||||
|
|
Loading…
Reference in New Issue