mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Fix meater remaining time sensor (#72490)
This commit is contained in:
parent
692a602aea
commit
101b1489c8
@ -52,7 +52,7 @@ def _remaining_time_to_timestamp(probe: MeaterProbe) -> datetime | None:
|
||||
"""Convert remaining time to timestamp."""
|
||||
if not probe.cook or probe.cook.time_remaining < 0:
|
||||
return None
|
||||
return dt_util.utcnow() + timedelta(probe.cook.time_remaining)
|
||||
return dt_util.utcnow() + timedelta(seconds=probe.cook.time_remaining)
|
||||
|
||||
|
||||
SENSOR_TYPES = (
|
||||
|
Loading…
x
Reference in New Issue
Block a user