mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +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()
|
||||
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
|
||||
@requires_update
|
||||
|
Loading…
Reference in New Issue
Block a user