Fix meater remaining time sensor ()

This commit is contained in:
Erik Montnemery 2022-05-25 18:09:53 +02:00 committed by GitHub
parent 692a602aea
commit 101b1489c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ def _remaining_time_to_timestamp(probe: MeaterProbe) -> datetime | None:
"""Convert remaining time to timestamp.""" """Convert remaining time to timestamp."""
if not probe.cook or probe.cook.time_remaining < 0: if not probe.cook or probe.cook.time_remaining < 0:
return None return None
return dt_util.utcnow() + timedelta(probe.cook.time_remaining) return dt_util.utcnow() + timedelta(seconds=probe.cook.time_remaining)
SENSOR_TYPES = ( SENSOR_TYPES = (