def is_valid(self, key):
        """Return True if a valid session is given."""
        with self._lock:
            self._remove_expired()

            return (key in self._sessions and
                    date_util.utcnow() > self._sessions[key])
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/http.py/SessionStore.is_valid/swapped operands of `>`