def is_expired(self):
        """ Indicates if connection has expired. """
        if HB_PING_TIME > time.time() - self.last_ping:
            self.ping()

        return (time.time() - self.last_pong) > HB_PING_TIME + HB_PONG_TIME
dataset/ETHPy150Open balloob/pychromecast/pychromecast/socket_client.py/HeartbeatController.is_expired/swapped operands of `>`