mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
prefer total_seconds over seconds (#49505)
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user