Fix meater remaining time sensor (#72490)
This commit is contained in:
parent
692a602aea
commit
101b1489c8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue