mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Fix Home Connect datetime comparison (#35501)
This commit is contained in:
parent
93f8d21bc0
commit
d2502f649f
@ -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…
x
Reference in New Issue
Block a user