mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix Home Connect datetime comparison (#35501)
This commit is contained in:
@@ -62,7 +62,7 @@ class HomeConnectSensor(HomeConnectEntity):
|
|||||||
elif (
|
elif (
|
||||||
self._state is not None
|
self._state is not None
|
||||||
and self._sign == 1
|
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
|
# if the date is supposed to be in the future but we're
|
||||||
# already past it, set state to None.
|
# already past it, set state to None.
|
||||||
|
Reference in New Issue
Block a user