Update wemo.py
* continuation line under-indented for visual indent
This commit is contained in:
parent
c404fb7142
commit
44d274e428
1 changed files with 4 additions and 3 deletions
|
@ -157,9 +157,10 @@ class WemoSwitch(SwitchDevice):
|
|||
def _as_uptime(self, _seconds):
|
||||
d = datetime(1,1,1) + timedelta(seconds=_seconds)
|
||||
return "{:0>2d}d {:0>2d}h {:0>2d}m {:0>2d}s".format(d.day-1,
|
||||
d.hour,
|
||||
d.minute, d.second)
|
||||
|
||||
d.hour,
|
||||
d.minute,
|
||||
d.second)
|
||||
|
||||
@property
|
||||
def on_for(self):
|
||||
"""On time in seconds."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue