mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-10 14:57:07 +00:00
Drop microsecond precision for on_since (#296)
This commit is contained in:
parent
bcb9fe18ab
commit
6a31de5381
@ -598,7 +598,7 @@ class SmartDevice:
|
|||||||
|
|
||||||
on_time = self.sys_info["on_time"]
|
on_time = self.sys_info["on_time"]
|
||||||
|
|
||||||
return datetime.now() - 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