Fix Home Connect datetime comparison (#35501)
This commit is contained in:
parent
93f8d21bc0
commit
d2502f649f
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class HomeConnectSensor(HomeConnectEntity):
|
|||
elif (
|
||||
self._state is not None
|
||||
and self._sign == 1
|
||||
and self._state < dt_util.utcnow()
|
||||
and dt_util.parse_datetime(self._state) < dt_util.utcnow()
|
||||
):
|
||||
# if the date is supposed to be in the future but we're
|
||||
# already past it, set state to None.
|
||||
|
|
Loading…
Add table
Reference in a new issue