mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +00:00
Update wemo.py
* continuation line under-indented for visual indent
This commit is contained in:
parent
c404fb7142
commit
44d274e428
@ -157,8 +157,9 @@ class WemoSwitch(SwitchDevice):
|
|||||||
def _as_uptime(self, _seconds):
|
def _as_uptime(self, _seconds):
|
||||||
d = datetime(1,1,1) + timedelta(seconds=_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,
|
return "{:0>2d}d {:0>2d}h {:0>2d}m {:0>2d}s".format(d.day-1,
|
||||||
d.hour,
|
d.hour,
|
||||||
d.minute, d.second)
|
d.minute,
|
||||||
|
d.second)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def on_for(self):
|
def on_for(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user