mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Drop microsecond precision for on_since (#296)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user