mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 03:33:35 +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"]
|
||||
|
||||
return datetime.now() - 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