diff --git a/homeassistant/components/home_connect/sensor.py b/homeassistant/components/home_connect/sensor.py index add1a0084b3..0ae5a9fcd36 100644 --- a/homeassistant/components/home_connect/sensor.py +++ b/homeassistant/components/home_connect/sensor.py @@ -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.