mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-09 22:37:08 +00:00
Fix on_since for smartstrip sockets (#529)
This commit is contained in:
parent
85c8410c3d
commit
af37e83db1
@ -360,7 +360,7 @@ class SmartStripPlug(SmartPlug):
|
|||||||
info = self._get_child_info()
|
info = self._get_child_info()
|
||||||
on_time = info["on_time"]
|
on_time = info["on_time"]
|
||||||
|
|
||||||
return self.time - timedelta(seconds=on_time)
|
return datetime.now().replace(microsecond=0) - timedelta(seconds=on_time)
|
||||||
|
|
||||||
@property # type: ignore
|
@property # type: ignore
|
||||||
@requires_update
|
@requires_update
|
||||||
|
Loading…
Reference in New Issue
Block a user