We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d802f3a commit e712b80Copy full SHA for e712b80
homeassistant/components/home_connect/sensor.py
@@ -63,16 +63,14 @@ async def async_update(self):
63
elif (
64
self._state is not None
65
and self._sign == 1
66
- and dt_util.parse_datetime(self._state) < dt_util.utcnow()
+ and self._state < dt_util.utcnow()
67
):
68
# if the date is supposed to be in the future but we're
69
# already past it, set state to None.
70
self._state = None
71
else:
72
seconds = self._sign * float(status[self._key][ATTR_VALUE])
73
- self._state = (
74
- dt_util.utcnow() + timedelta(seconds=seconds)
75
- ).isoformat()
+ self._state = dt_util.utcnow() + timedelta(seconds=seconds)
76
77
self._state = status[self._key].get(ATTR_VALUE)
78
if self._key == BSH_OPERATION_STATE:
0 commit comments