Drop microsecond precision for on_since (#296)

This commit is contained in:
Teemu R 2022-01-29 17:02:05 +01:00 committed by GitHub
parent bcb9fe18ab
commit 6a31de5381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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