prefer total_seconds over seconds (#49505)

This commit is contained in:
Paulus Schoutsen
2021-04-20 17:41:36 -07:00
committed by GitHub
parent 020d456889
commit a90d3a051f
31 changed files with 65 additions and 46 deletions

View File

@ -431,7 +431,7 @@ def _update(
state = round(
(counter - data.value)
/ 1000 ** 2
/ (now - (data.update_time or now)).seconds,
/ (now - (data.update_time or now)).total_seconds(),
3,
)
else: